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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
addaleax authored and MylesBorins committed Jan 8, 2018
1 parent 008336c commit cc683bd
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 cc683bd

Please sign in to comment.