Skip to content

Commit

Permalink
fix(test): TestWorkflowTemplateRefWithShutdownAndSuspend flaky (#5381)
Browse files Browse the repository at this point in the history
Signed-off-by: Saravanan Balasubramanian <[email protected]>
  • Loading branch information
sarabala1979 committed Mar 12, 2021
1 parent 57c05df commit 982e5e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions workflow/controller/operator_workflow_template_ref_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ func TestWorkflowTemplateRefWithShutdownAndSuspend(t *testing.T) {
assert.Equal(t, wfv1.ShutdownStrategyTerminate, woc1.wf.Status.StoredWorkflowSpec.Shutdown)
for _, node := range woc1.wf.Status.Nodes {
if assert.NotNil(t, node) {
assert.Contains(t, node.Message, "workflow shutdown with strategy: Terminate")
assert.Contains(t, node.Message, "workflow shutdown with strategy")
assert.Contains(t, node.Message, "Terminate")
}
}
})
Expand All @@ -352,7 +353,8 @@ func TestWorkflowTemplateRefWithShutdownAndSuspend(t *testing.T) {
assert.Equal(t, wfv1.ShutdownStrategyStop, woc1.wf.Status.StoredWorkflowSpec.Shutdown)
for _, node := range woc1.wf.Status.Nodes {
if assert.NotNil(t, node) {
assert.Contains(t, node.Message, "workflow shutdown with strategy: Stop")
assert.Contains(t, node.Message, "workflow shutdown with strategy")
assert.Contains(t, node.Message, "Stop")
}
}
})
Expand Down

0 comments on commit 982e5e9

Please sign in to comment.