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.

PR-URL: #17564
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
addaleax committed Dec 13, 2017
1 parent a58f89d commit abe14ab
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 abe14ab

Please sign in to comment.