From 5e65bc1327661b0898975f6673247a632dc23ca7 Mon Sep 17 00:00:00 2001 From: Mohammad Kermani Date: Thu, 10 Oct 2024 15:42:41 +0330 Subject: [PATCH] chore: improve condition in scale test loop --- tests/scale/src/node/node.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/scale/src/node/node.ts b/tests/scale/src/node/node.ts index ad0b3ff..31e7a1b 100644 --- a/tests/scale/src/node/node.ts +++ b/tests/scale/src/node/node.ts @@ -31,8 +31,7 @@ const data: Record = {}; setTimeout(async () => { // eslint-disable-next-line no-constant-condition - while (true) { - if (counter > 20000) return; + while (counter <= 20000) { const currentCounter = counter; for (let i = 0; i < Math.random() * 30; i++) { counter++;