Skip to content

Commit

Permalink
test(controller): Add memoization tests. See #3214 (#3455) (#3466)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec authored Jul 13, 2020
1 parent f5183ae commit 847ba53
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions workflow/controller/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3983,7 +3983,6 @@ func TestResubmitMemoization(t *testing.T) {
kind: Workflow
metadata:
name: my-wf
namespace: argo
spec:
entrypoint: main
templates:
Expand All @@ -3993,7 +3992,8 @@ spec:
status:
phase: Failed
nodes:
my-wf-lzarl:
my-wf:
name: my-wf
phase: Failed
`)
wf, err := util.FormulateResubmitWorkflow(wf, true)
Expand All @@ -4013,5 +4013,9 @@ status:
assert.Fail(t, "invalid template")
}
}
list, err := controller.kubeclientset.CoreV1().Pods("").List(metav1.ListOptions{})
if assert.NoError(t, err) {
assert.Len(t, list.Items, 1)
}
}
}

0 comments on commit 847ba53

Please sign in to comment.