Skip to content

Commit

Permalink
test: increase concurrency margin error
Browse files Browse the repository at this point in the history
  • Loading branch information
qurafi committed Jun 13, 2023
1 parent 0b91a2a commit 283a009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/plugins/plugins.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ describe("plugins.ts", async () => {
const elapsed = Date.now() - start;
const expected = concurrent ? timeout_duration : timeout_duration * 3;

const e = 15;
console.log(elapsed);
const e = process.env.CI ? 100 : 15;
console.log({ elapsed });
expect(elapsed >= expected - e && elapsed <= expected + e).toBe(true);
}

Expand Down

0 comments on commit 283a009

Please sign in to comment.