Skip to content

Commit 9e95a46

Browse files
committed
test: fix flaky test-http2-reset-flood
Set `allowHalfOpen: true` in the client. Fixes: nodejs#29802 Refs: nodejs#31806
1 parent 4e3f6f3 commit 9e95a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-http2-reset-flood.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if (process.env.HAS_STARTED_WORKER) {
2828
process.env.HAS_STARTED_WORKER = 1;
2929
const worker = new Worker(__filename).on('message', common.mustCall((port) => {
3030
const h2header = Buffer.alloc(9);
31-
const conn = net.connect(port);
31+
const conn = net.connect({ port, allowHalfOpen: true });
3232

3333
conn.write('PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n');
3434

0 commit comments

Comments
 (0)