test(workflow-engine-redist): Update tests to ensure behaviour validation properly (#12514)

This commit is contained in:
Adrien de Peretti
2025-05-16 15:03:38 +02:00
committed by GitHub
parent aaf5407d29
commit 399dddc0c7
2 changed files with 14 additions and 5 deletions
@@ -29,6 +29,12 @@ createWorkflow(
}
)
const step_1_async = createStep(
"step_1_async",
jest.fn(async (input) => {}),
jest.fn()
)
createWorkflow(
{
name: "workflow_transaction_timeout_async",
@@ -37,7 +43,7 @@ createWorkflow(
retentionTime: 5,
},
function (input) {
const resp = step_1(input).config({
const resp = step_1_async(input).config({
async: true,
})