Skip to content

Commit

Permalink
runtime: make timed tests more lenient
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Nov 15, 2023
1 parent 0fb2d58 commit 8587600
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runtime/test/execute/job.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ test(`notify ${NOTIFY_JOB_COMPLETE} with no next`, async (t) => {
t.deepEqual(state, state);
t.deepEqual(next, []);
t.assert(!isNaN(duration));
t.true(duration < 10);
t.true(duration < 100);
t.is(jobId, 'j');
}
};
Expand All @@ -154,7 +154,7 @@ test(`notify ${NOTIFY_JOB_COMPLETE} with two nexts`, async (t) => {
t.deepEqual(state, state);
t.deepEqual(next, ['b', 'c']);
t.assert(!isNaN(duration));
t.true(duration < 10);
t.true(duration < 100);
t.is(jobId, 'j');
}
};
Expand Down Expand Up @@ -230,7 +230,7 @@ test(`notify ${NOTIFY_JOB_ERROR} for a fail`, async (t) => {
t.deepEqual(state, state);
t.deepEqual(next, ['b']);
t.assert(!isNaN(duration));
t.true(duration < 10);
t.true(duration < 100);
t.is(jobId, 'j');
}
};
Expand Down

0 comments on commit 8587600

Please sign in to comment.