Skip to content

Commit

Permalink
fix: sleep 1ms between runs
Browse files Browse the repository at this point in the history
  • Loading branch information
allanhvam committed Aug 10, 2024
1 parent a97ffb4 commit 23df64c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import assert from "node:assert";
import { Worker } from "../Worker";
import { testWorkflow } from "./workflows/test-workflow";
import { DurableFunctionsWorkflowHistoryStore, MemoryWorkflowHistoryStore, type WorkflowInstanceHeader } from "../stores";
import { sleep } from "../sleep";

test.before(async () => {
const worker = Worker.getInstance();
Expand Down Expand Up @@ -70,6 +71,7 @@ void test("Workflow store, getInstances options", async (t) => {
store,
});
await handle.result();
await sleep("1ms");
}

// Act
Expand Down

0 comments on commit 23df64c

Please sign in to comment.