Skip to content

Commit

Permalink
fix(test): Fixed Flaky e2e tests TestSynchronizationWfLevelMutex and …
Browse files Browse the repository at this point in the history
…TestResourceTemplateStopAndTerminate/ResourceTemplateStop (#4688)
  • Loading branch information
sarabala1979 committed Dec 11, 2020
1 parent ab83775 commit aec2218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ func (s *CLISuite) TestSynchronizationWfLevelMutex() {
RunCli([]string{"get", "synchronization-wf-level-mutex"}, func(t *testing.T, output string, err error) {
assert.Contains(t, output, "Pending")
}).
WaitForWorkflow().
WaitForWorkflow(fixtures.ToBeCompleted, 120*time.Second).
Then().
ExpectWorkflow(func(t *testing.T, _ *metav1.ObjectMeta, status *wfv1.WorkflowStatus) {
assert.Equal(t, wfv1.NodeSucceeded, status.Phase)
Expand Down Expand Up @@ -1287,6 +1287,7 @@ func (s *CLISuite) TestResourceTemplateStopAndTerminate() {
RunCli([]string{"submit", "functional/resource-template.yaml"}, func(t *testing.T, output string, err error) {
assert.Contains(t, output, "Pending")
}).
WaitForWorkflow(fixtures.ToBeRunning).
RunCli([]string{"get", "resource-tmpl-wf"}, func(t *testing.T, output string, err error) {
assert.Contains(t, output, "Running")
}).
Expand Down

0 comments on commit aec2218

Please sign in to comment.