Skip to content

Commit

Permalink
Ensure that waitForTaskFailed works as expected.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Aug 30, 2024
1 parent 2e12fcc commit 224fce7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func waitForTaskFailed(taskKey types.NamespacedName) *api.CassandraTask {
err := k8sClient.Get(context.TODO(), taskKey, emptyTask)
Expect(err).ToNot(HaveOccurred())

return emptyTask.Status.CompletionTime == nil
return emptyTask.Status.Failed > 0
}, time.Duration(5*time.Second)).Should(BeTrue())
return emptyTask
}
Expand Down

0 comments on commit 224fce7

Please sign in to comment.