Skip to content

Commit

Permalink
test: make sure parent workflow start is before child workflow start
Browse files Browse the repository at this point in the history
  • Loading branch information
allanhvam committed Aug 10, 2024
1 parent f3da66f commit a97ffb4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tests/workflows/nested-workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export async function nestedWorkflow(): Promise<void> {
return await Promise.reject(new Error());
}

const handle = await Worker.getInstance().start(childWorkflow, { workflowId: "child" });
await sleep("5ms");

const handle = await Worker.getInstance().start(childWorkflow, {
workflowId: "child",
});
await handle.result();

await sleep("5ms");
Expand Down

0 comments on commit a97ffb4

Please sign in to comment.