Skip to content

Commit

Permalink
Add CompletionTime check in the restart task test
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Sep 5, 2022
1 parent 0cb451d commit 032a9eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/control/cassandratask_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@ var _ = Describe("CassandraTask controller tests", func() {
return found
}).Should(BeTrue())

Expect(k8sClient.Get(context.TODO(), taskKey, task)).To(Succeed())
Expect(task.Status.CompletionTime).To(BeNil())
// Imitate statefulset_controller
Expect(k8sClient.Get(context.TODO(), stsKey, &sts)).Should(Succeed())
sts.Status.UpdatedReplicas = sts.Status.Replicas
Expand Down

0 comments on commit 032a9eb

Please sign in to comment.