Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

Commit

Permalink
one more test to check if connected endpoints are closed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed May 6, 2016
1 parent b0aeff8 commit 30d4bb6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/05-muxing-spdy.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down Expand Up @@ -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)
})
})
})

0 comments on commit 30d4bb6

Please sign in to comment.