Skip to content

Commit

Permalink
Relax Timing assertions (for CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Jan 27, 2021
1 parent b8edb5b commit 369036a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/retry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ function test(backend: "Redis" | "In-Memory") {

const executionDates = env.jobs.map(([executionDate]) => executionDate);
expect(executionDates).to.have.length(4);
expect(executionDates[1] - executionDates[0]).to.be.within(5, 15);
expect(executionDates[2] - executionDates[0]).to.be.within(90, 110);
expect(executionDates[3] - executionDates[0]).to.be.within(190, 210);
expect(executionDates[1] - executionDates[0]).to.be.within(5, 20);
expect(executionDates[2] - executionDates[0]).to.be.within(80, 120);
expect(executionDates[3] - executionDates[0]).to.be.within(180, 220);

const counts = env.jobs.map(([, job]) => job.count);
expect(counts).to.eql([1, 2, 3, 4]);
Expand Down

0 comments on commit 369036a

Please sign in to comment.