Skip to content

Commit

Permalink
ci: Flaky Start-up Taint Drift Test (#4386)
Browse files Browse the repository at this point in the history
  • Loading branch information
engedaam authored Aug 7, 2023
1 parent d035561 commit 0e0783f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/suites/drift/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,13 @@ var _ = Describe("Drift", Label("AWS"), func() {
return nodes[i].CreationTimestamp.Before(&nodes[j].CreationTimestamp)
})
nodeTwo := nodes[1]
nodeTwo.Spec.Taints = []v1.Taint{}
env.ExpectCreatedOrUpdated(nodeTwo)
Eventually(func(g Gomega) {
n := &v1.Node{}
g.Expect(env.Client.Get(env.Context, client.ObjectKeyFromObject(nodeTwo), n)).To(Succeed())
stored := n.DeepCopy()
n.Spec.Taints = []v1.Taint{}
g.Expect(env.Client.Patch(env.Context, n, client.MergeFrom(stored))).To(Succeed())
}).Should(Succeed())
}

env.EventuallyExpectNotFound(pod, node)
Expand Down

0 comments on commit 0e0783f

Please sign in to comment.