Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit b76993d

Browse files
committed
fix: identify needs time to finish
1 parent 4904f4a commit b76993d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/swarm.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ module.exports = (common) => {
5555
})
5656
})
5757

58+
// for Identify to finish
59+
it('time', (done) => {
60+
setTimeout(done, 1500)
61+
})
62+
5863
describe('.peers', () => {
5964
beforeEach((done) => {
6065
const ipfsBAddr = ipfsBId.addresses[0]
@@ -137,6 +142,11 @@ module.exports = (common) => {
137142
})
138143
})
139144

145+
// for Identify to finish
146+
it('time', (done) => {
147+
setTimeout(done, 1500)
148+
})
149+
140150
it('.peers', () => {
141151
return ipfsA.swarm.peers().then((multiaddrs) => {
142152
expect(multiaddrs).to.have.length.above(0)

0 commit comments

Comments
 (0)