Skip to content

Commit

Permalink
优化ut
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdsteelRail committed Dec 2, 2024
1 parent ea8ebdf commit e927b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/collaset/collaset_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ var _ = Describe("collaset controller", func() {
return len(podList.Items) == 1
}, 5*time.Second, 1*time.Second).Should(BeTrue())
Expect(c.Get(context.TODO(), types.NamespacedName{Namespace: cs.Namespace, Name: cs.Name}, cs)).Should(BeNil())
Eventually(expectedStatusReplicas(c, cs, 0, 0, 0, 1, 1, 0, 0, 0), 5*time.Second, 1*time.Second).Should(BeNil())
Eventually(func() error { return expectedStatusReplicas(c, cs, 0, 0, 0, 1, 1, 0, 0, 0) }, 5*time.Second, 1*time.Second).Should(BeNil())

// label pod to trigger replace
originPod := podList.Items[0]
Expand Down

0 comments on commit e927b8c

Please sign in to comment.