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

Commit 1fcca03

Browse files
committed
fix pubsub tests (note, if you use promises, you gotta use them to the end)
1 parent dacb2e6 commit 1fcca03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pubsub.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,14 +647,14 @@ module.exports = (common) => {
647647
.then(() => ipfs1.pubsub.peers(topic))
648648
.then((peers) => {
649649
expect(peers).to.exist()
650-
ipfs1.pubsub.unsubscribe(topic, sub)
650+
return ipfs1.pubsub.unsubscribe(topic, sub)
651651
})
652652
})
653653

654654
it('.ls', () => {
655655
return ipfs1.pubsub.ls()
656656
.then((topics) => {
657-
expect(topics).to.be.eql([])
657+
expect(topics).to.eql([])
658658
})
659659
})
660660
})

0 commit comments

Comments
 (0)