Skip to content

Commit

Permalink
test: add assertion for workflow annotation
Browse files Browse the repository at this point in the history
Signed-off-by: Graham Brereton <graham.brereton@form3.tech>
  • Loading branch information
grahambrereton-form3 committed Jan 18, 2024
1 parent 2085547 commit 89d92d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/workflow/controllers/serial_node_reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@ var _ = Describe("Workflow", func() {

g.Expect(ConditionEqualsTo(entryNode.Status, v1alpha1.ConditionAborted, corev1.ConditionTrue)).
To(BeTrue(), "entry node should be aborted")

workflow := v1alpha1.Workflow{}
g.Expect(kubeClient.Get(ctx, types.NamespacedName{Namespace: ns, Name: "statuscheck-abort"}, &workflow)).To(Succeed())
g.Expect(WorkflowAborted(workflow)).To(BeTrue(), "workflow should be aborted")
}, 10*time.Second, time.Second).Should(Succeed())
})
})
Expand Down

0 comments on commit 89d92d7

Please sign in to comment.