Skip to content

Commit d64e94b

Browse files
trivikrmcollina
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: #14985 PR-URL: #16215 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 7ab0a9a commit d64e94b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
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)