diff --git a/test/agent.js b/test/agent.js index b49add7..3b5756b 100644 --- a/test/agent.js +++ b/test/agent.js @@ -1219,6 +1219,11 @@ test('graceful close works', wrapper, async (t, server) => { newRequest.close(); firstRequest.close(); + await pEvent(firstRequest, 'close'); + + t.true(firstSession.closed); + t.true(firstSession[Agent.kGracefullyClosing]); + agent.destroy(); await secondServer.close();