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

Commit c6995d6

Browse files
committed
fix: async auto
1 parent d268add commit c6995d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: js/src/name-pubsub/cancel.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ module.exports = (createCommon, options) => {
6868
expect(err).to.exist()
6969
auto({
7070
subs1: (cb) => ipfs.name.pubsub.subs(cb),
71-
cancel: (cb) => ipfs.name.pubsub.cancel(ipnsPath, cb),
72-
subs2: (cb) => ipfs.name.pubsub.subs(cb)
73-
}, 1, (err, res) => {
71+
cancel: ['subs1', (_, cb) => ipfs.name.pubsub.cancel(ipnsPath, cb)],
72+
subs2: ['cancel', (_, cb) => ipfs.name.pubsub.subs(cb)]
73+
}, (err, res) => {
7474
expect(err).to.not.exist()
7575
expect(res).to.exist()
7676
expect(res.subs1).to.be.an('array').that.does.include(ipnsPath)

0 commit comments

Comments
 (0)