From 0f2864422fb422b646c82fcc99e497371a329562 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 10 Dec 2017 00:33:02 +0100 Subject: [PATCH] test: expand test-https-keep-alive-large-write Check that `serverConnectionHandle.writeQueueSize === 0` after a large write finished. --- test/sequential/test-https-keep-alive-large-write.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);