mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-07-19 18:41:57 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
631dad8647 | ||
|
3eac0e0dd6 | ||
|
30d4bb641e |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "libp2p-swarm",
|
||||
"version": "0.12.6",
|
||||
"version": "0.12.7",
|
||||
"description": "libp2p swarm implementation in JavaScript",
|
||||
"main": "lib/index.js",
|
||||
"jsnext:main": "src/index.js",
|
||||
|
@@ -59,10 +59,10 @@ describe('stream muxing with spdy (on TCP)', function () {
|
||||
|
||||
swarmA.close(closed)
|
||||
swarmB.close(closed)
|
||||
swarmC.close(closed)
|
||||
// swarmC.close(closed)
|
||||
|
||||
function closed () {
|
||||
if (++counter === 3) {
|
||||
if (++counter === 2) {
|
||||
done()
|
||||
}
|
||||
}
|
||||
@@ -128,4 +128,11 @@ describe('stream muxing with spdy (on TCP)', function () {
|
||||
}, 500)
|
||||
})
|
||||
})
|
||||
|
||||
it('close one end, make sure the other does not blow', (done) => {
|
||||
swarmC.close(() => {
|
||||
// to make sure it has time to propagate
|
||||
setTimeout(done, 1000)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user