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 Sep 4, 2024
1 parent 75c938e commit e55a640
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 e55a640

Please sign in to comment.