Skip to content

Commit 0ba9bce

Browse files
shirzady1934maxdml
authored andcommitted
explain edit
1 parent a123067 commit 0ba9bce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/dbos/cli_integration_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ func testListWorkflows(t *testing.T, cliPath string, baseArgs []string, dbRole s
377377
assert.True(t, exists, "Response should contain workflow_id")
378378
assert.NotEmpty(t, workflowID, "Workflow ID should not be empty")
379379

380+
// Wait until the QueueWorkflow has enqueued all workflows.
381+
// This is to avoid a race condition where the test checks for queued workflows
382+
// before they are all enqueued.
380383
require.Eventually(t, func() bool {
381384
args := append([]string{"workflow", "list", "--queue", "example-queue"}, baseArgs...)
382385
cmd := exec.Command(cliPath, args...)

0 commit comments

Comments
 (0)