Skip to content

Commit

Permalink
Fix closing the request first, then the client, then the server
Browse files Browse the repository at this point in the history
  • Loading branch information
maritz committed Sep 26, 2018
1 parent ce237f3 commit 75794dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/compression.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,11 @@ describe('compression()', function () {
})
request.on('response', function (headers) {
assert.equal(headers['content-encoding'], 'gzip')
client.close(function () {
server.close(function () {
done()
request.close(http2.constants.NGHTTP2_NO_ERROR, function () {
client.close(function () {
server.close(function () {
done()
})
})
})
})
Expand Down

0 comments on commit 75794dd

Please sign in to comment.