Skip to content

Commit

Permalink
chore: improve condition in scale test loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mkermani144 committed Oct 10, 2024
1 parent 2bf3fee commit 5e65bc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/scale/src/node/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ const data: Record<string, { r: number; ss: number; sf: number }> = {};

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++;
Expand Down

0 comments on commit 5e65bc1

Please sign in to comment.