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: https://github.com/nodejs/node/issues/14985 PR-URL: https://github.com/nodejs/node/pull/16215 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
parent
7ab0a9a3c8
commit
d64e94ba5b
@ -29,6 +29,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': '/' });
|
||||
|
Loading…
x
Reference in New Issue
Block a user