From 283f5c3a1454413702d9b5ccc45c1b9b20a52ec5 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Mon, 3 Aug 2020 12:52:08 +0200 Subject: [PATCH] test: fix flaky http-parser-timeout-reset Refs: https://github.com/nodejs/node/pull/34578#issuecomment-667941698 PR-URL: https://github.com/nodejs/node/pull/34609 Reviewed-By: Richard Lau Reviewed-By: Myles Borins --- test/parallel/test-http-parser-timeout-reset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http-parser-timeout-reset.js b/test/parallel/test-http-parser-timeout-reset.js index c9daa7c2124a73..1ba72d865f73fb 100644 --- a/test/parallel/test-http-parser-timeout-reset.js +++ b/test/parallel/test-http-parser-timeout-reset.js @@ -34,7 +34,7 @@ const server = net.createServer((socket) => { parser[HTTPParser.kOnHeaders] = common.mustNotCall(); - parser[HTTPParser.kOnExecute] = common.mustCall(3); + parser[HTTPParser.kOnExecute] = common.mustCallAtLeast(3); parser[HTTPParser.kOnHeadersComplete] = common.mustCall();