diff --git a/ghost/core/test/e2e-server/services/milestones.test.js b/ghost/core/test/e2e-server/services/milestones.test.js index 6eeb0a7212..5bc552fd18 100644 --- a/ghost/core/test/e2e-server/services/milestones.test.js +++ b/ghost/core/test/e2e-server/services/milestones.test.js @@ -158,7 +158,10 @@ describe('Milestones Service', function () { loggingStub = sinon.stub(logging, 'info'); const threeMonthsAgo = new Date(); threeMonthsAgo.setMonth(threeMonthsAgo.getMonth() - 3); - clock = sinon.useFakeTimers(threeMonthsAgo.getTime()); + clock = sinon.useFakeTimers({ + now: threeMonthsAgo.getTime(), + toFake: ['setTimeout'] + }); sinon.createSandbox(); configUtils.set('milestones', milestonesConfig); mockManager.mockLabsEnabled('milestoneEmails');