diff --git a/test/sequential/test-https-keep-alive-large-write.js b/test/sequential/test-https-keep-alive-large-write.js index 88468dc03fc99b..5048f4f9519449 100644 --- a/test/sequential/test-https-keep-alive-large-write.js +++ b/test/sequential/test-https-keep-alive-large-write.js @@ -41,7 +41,9 @@ const server = https.createServer({ }); serverConnectionHandle = res.socket._handle; - res.write(content); + res.write(content, () => { + assert.strictEqual(serverConnectionHandle.writeQueueSize, 0); + }); res.end(); })); server.setTimeout(serverTimeout);