Skip to content

Commit

Permalink
test: http2 emitGoAway post shutdown pre destroy
Browse files Browse the repository at this point in the history
This commit tests use case when emitGoAway is called when client is
shutting down but is not destroyed.

Refs: #14985
PR-URL: #16215
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
  • Loading branch information
trivikr authored and MylesBorins committed Oct 23, 2017
1 parent 811118e commit 327be77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-http2-goaway-opaquedata.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ server.listen(0, () => {
assert.deepStrictEqual(code, 1);
assert.deepStrictEqual(lastStreamID, 0);
assert.deepStrictEqual(data, buf);
// Call shutdown() here so that emitGoaway calls destroy()
client.shutdown();
server.close();
}));
const req = client.request({ ':path': '/' });
Expand Down

0 comments on commit 327be77

Please sign in to comment.