From 0b7a8a0ea011c24b01af35d9830a0c0c7981fd4e Mon Sep 17 00:00:00 2001 From: Amanuel Engeda Date: Fri, 4 Aug 2023 13:05:23 -0700 Subject: [PATCH] failing drift test --- test/suites/drift/suite_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/suites/drift/suite_test.go b/test/suites/drift/suite_test.go index f21fc7cdcef7..36108690b012 100644 --- a/test/suites/drift/suite_test.go +++ b/test/suites/drift/suite_test.go @@ -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)