There was an error while loading. Please reload this page.
1 parent 385fd6a commit e40734eCopy full SHA for e40734e
1 file changed
packages/modules/workflow-engine-inmemory/integration-tests/__tests__/index.spec.ts
@@ -815,16 +815,16 @@ moduleIntegrationTestRunner<IWorkflowEngineService>({
815
816
it("should execute a scheduled workflow", async () => {
817
const spy = createScheduled("standard", {
818
- cron: "0 0 * * * *", // Runs at the start of every hour
+ interval: 1000,
819
})
820
821
expect(spy).toHaveBeenCalledTimes(0)
822
823
- await jest.runOnlyPendingTimersAsync()
+ await jest.advanceTimersByTimeAsync(1100)
824
825
expect(spy).toHaveBeenCalledTimes(1)
826
827
828
829
expect(spy).toHaveBeenCalledTimes(2)
830
0 commit comments