Skip to content

Commit

Permalink
Merge 16c423d into 71330cc
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-molak committed Apr 20, 2024
2 parents 71330cc + 16c423d commit 224cd72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/spec/screenplay/time/models/Scheduler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ describe('Scheduler', () => {

it(`stops the work when the timeout expires`, async () => {

const twoDelays = delay.plus(delay);
const delayAndAHalf = delay.plus(new Duration(delay.inMilliseconds() / 2));

let callCount = 0;

Expand All @@ -259,10 +259,10 @@ describe('Scheduler', () => {
{
exitCondition: continueIndefinitely,
delayBetweenInvocations: () => delay,
timeout: twoDelays,
timeout: delayAndAHalf,
}
)
).to.be.rejectedWith(TimeoutExpiredError, `Timeout of ${ twoDelays } has expired`);
).to.be.rejectedWith(TimeoutExpiredError, `Timeout of ${ delayAndAHalf } has expired`);

expect(callCount).to.equal(1);
});
Expand Down

0 comments on commit 224cd72

Please sign in to comment.