Skip to content

Commit

Permalink
Fix TestPatchNode flake
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziopandini committed Mar 19, 2024
1 parent 080cd7d commit a76ec43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/controllers/machine/machine_controller_noderef_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -913,12 +913,12 @@ func TestPatchNode(t *testing.T) {
ms := tc.ms.DeepCopy()
md := tc.md.DeepCopy()

g.Expect(env.Create(ctx, oldNode)).To(Succeed())
g.Expect(env.Create(ctx, machine)).To(Succeed())
g.Expect(env.Create(ctx, ms)).To(Succeed())
g.Expect(env.Create(ctx, md)).To(Succeed())
g.Expect(env.CreateAndWait(ctx, oldNode)).To(Succeed())
g.Expect(env.CreateAndWait(ctx, machine)).To(Succeed())
g.Expect(env.CreateAndWait(ctx, ms)).To(Succeed())
g.Expect(env.CreateAndWait(ctx, md)).To(Succeed())
t.Cleanup(func() {
_ = env.Cleanup(ctx, oldNode, machine, ms, md)
_ = env.CleanupAndWait(ctx, oldNode, machine, ms, md)
})

err := r.patchNode(ctx, env, oldNode, tc.newLabels, tc.newAnnotations, tc.machine)
Expand Down

0 comments on commit a76ec43

Please sign in to comment.