Skip to content

Commit

Permalink
test: fix flaky test-http2-reset-flood
Browse files Browse the repository at this point in the history
Set `allowHalfOpen: true` in the client.

Fixes: nodejs#29802
Refs: nodejs#31806
  • Loading branch information
Trott committed Jul 12, 2020
1 parent 4e3f6f3 commit 9e95a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http2-reset-flood.js
Expand Up @@ -28,7 +28,7 @@ if (process.env.HAS_STARTED_WORKER) {
process.env.HAS_STARTED_WORKER = 1;
const worker = new Worker(__filename).on('message', common.mustCall((port) => {
const h2header = Buffer.alloc(9);
const conn = net.connect(port);
const conn = net.connect({ port, allowHalfOpen: true });

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

Expand Down

0 comments on commit 9e95a46

Please sign in to comment.