Skip to content
Prev Previous commit
Next Next commit
Fix closing the http2 connections to prevent possible exceptions
  • Loading branch information
Moritz Peters authored and maritz committed Sep 26, 2018
commit ce237f334ab8aa099c5cdfad12194ffa6df7986e
7 changes: 5 additions & 2 deletions test/compression.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,11 @@ describe('compression()', function () {
})
request.on('response', function (headers) {
assert.equal(headers['content-encoding'], 'gzip')
client.destroy()
done()
client.close(function () {
server.close(function () {
done()
})
})
})
request.end()
})
Expand Down