Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit c288f99

Browse files
trivikraddaleax
authored andcommitted
test: http2 emitGoAway post shutdown pre destroy
This commit tests use case when emitGoAway is called when client is shutting down but is not destroyed. Refs: nodejs/node#14985 PR-URL: nodejs/node#16215 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent bfc4670 commit c288f99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-http2-goaway-opaquedata.js

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ server.listen(0, () => {
2929
assert.deepStrictEqual(code, 1);
3030
assert.deepStrictEqual(lastStreamID, 0);
3131
assert.deepStrictEqual(data, buf);
32+
// Call shutdown() here so that emitGoaway calls destroy()
33+
client.shutdown();
3234
server.close();
3335
}));
3436
const req = client.request({ ':path': '/' });

0 commit comments

Comments
 (0)