Skip to content

Commit

Permalink
test: expand test-https-keep-alive-large-write
Browse files Browse the repository at this point in the history
Check that `serverConnectionHandle.writeQueueSize === 0`
after a large write finished.
  • Loading branch information
addaleax committed Dec 9, 2017
1 parent 2c08345 commit 0f28644
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/sequential/test-https-keep-alive-large-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0f28644

Please sign in to comment.