From 6e82077dd4bac5a19bd772af9e9bbf1aab77fd28 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Thu, 29 Jun 2023 15:21:00 +0200 Subject: [PATCH] test: deflake test-net-throttle Sometimes the test completes with only two data chunks received on the client. Fixes: https://github.com/nodejs/node/issues/40507 PR-URL: https://github.com/nodejs/node/pull/48599 Reviewed-By: Filip Skokan Reviewed-By: Jacob Smith Reviewed-By: LiviaMedeiros Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Darshan Sen Reviewed-By: Nitzan Uziely --- test/parallel/test-net-throttle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-net-throttle.js b/test/parallel/test-net-throttle.js index c88f23a4f9674a..fd9e2be9aece41 100644 --- a/test/parallel/test-net-throttle.js +++ b/test/parallel/test-net-throttle.js @@ -84,5 +84,5 @@ server.listen(0, () => { process.on('exit', () => { assert.strictEqual(chars_recved, totalLength); - assert.strictEqual(npauses > 2, true); + assert.ok(npauses > 1, `${npauses} > 1`); });