Skip to content

Commit a2b6157

Browse files
committed
fixup! fixup! http: add optimizeEmptyRequests server option
This removes the potential TOCTOU condition that will make this test flaky
1 parent 50a0195 commit a2b6157

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/parallel/test-http-server-optimize-empty-requests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ server.listen(0, common.mustCall(async () => {
6666
function makeRequest(str) {
6767
return new Promise((resolve) => {
6868
const client = net.connect({ port: server.address().port }, common.mustCall(() => {
69-
client.on('data', common.mustCall());
7069
client.on('end', common.mustCall(() => {
7170
resolve();
7271
}));

0 commit comments

Comments
 (0)