Skip to content

Commit

Permalink
integration: fix automatic detection of orphaned pvc test flakyness
Browse files Browse the repository at this point in the history
  • Loading branch information
zimnx committed Feb 3, 2021
1 parent f5ed310 commit 7d5ef84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/controllers/cluster/controller_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ var _ = Describe("Cluster controller", func() {

It("When PVC affinity is bound to lost node, node is replaced", func() {
scylla := singleNodeCluster(ns)
scylla.Spec.AutomaticOrphanedNodeCleanup = true

Expect(testEnv.Create(ctx, scylla)).To(Succeed())
defer func() {
Expand Down Expand Up @@ -89,6 +88,10 @@ var _ = Describe("Cluster controller", func() {
Expect(sstStub.CreatePVCs(ctx, scylla, pvOption)).To(Succeed())
}

Expect(testEnv.Refresh(ctx, scylla)).To(Succeed())
scylla.Spec.AutomaticOrphanedNodeCleanup = true
Expect(testEnv.Update(ctx, scylla)).To(Succeed())

services, err := rackMemberService(ns.Namespace, rack, scylla)
Expect(err).To(BeNil())
Expect(services).To(Not(BeEmpty()))
Expand Down

0 comments on commit 7d5ef84

Please sign in to comment.