Skip to content

Commit a0ea59b

Browse files
more debug
1 parent ecef656 commit a0ea59b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/network/gen-bitswap-network.node.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,22 @@ describe('gen Bitswap network', function () {
154154
(err) => {
155155
// setTimeout is used to avoid closing the TCP socket while spdy is
156156
// still sending a ton of signalling data
157+
if (err) {
158+
console.log('test err')
159+
console.error(err.stack)
160+
return done(err)
161+
}
162+
163+
console.log('closing nodes')
157164
setTimeout(() => {
158165
parallel(nodeArr.map((node) => (cb) => {
159166
node.bitswap.stop()
160167
node.libp2p.stop(cb)
161168
}), (err2) => {
169+
console.log('errored?', err, err2)
162170
done(err || err2)
163171
})
164-
}, 2000)
172+
}, 3000)
165173
}
166174
)
167175
})

0 commit comments

Comments
 (0)