Skip to content

Commit e6cd7d2

Browse files
committed
fixup! fixup! http: add optimizeEmptyRequests server option
This removes the potential TOCTOU condition that will make this test flaky Signed-off-by: RafaelGSS <[email protected]>
1 parent 50a0195 commit e6cd7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ 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());
69+
client.on('data', () => {});
7070
client.on('end', common.mustCall(() => {
7171
resolve();
7272
}));

0 commit comments

Comments
 (0)