From c3dddb74ed8f463d1ea377adc82423076d9eaed2 Mon Sep 17 00:00:00 2001 From: Maciej Golaszewski Date: Thu, 31 Oct 2024 13:03:18 +0100 Subject: [PATCH] test fix --- pkg/upgrade/inplace/lock_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/upgrade/inplace/lock_test.go b/pkg/upgrade/inplace/lock_test.go index 0d9faaeb..5ec47a73 100644 --- a/pkg/upgrade/inplace/lock_test.go +++ b/pkg/upgrade/inplace/lock_test.go @@ -406,7 +406,7 @@ func TestLock(t *testing.T) { g.Expect(err).To(HaveOccurred()) lockInfo, err := lock.semaphore.getLockInfo() - g.Expect(err).To(HaveOccurred()) + g.Expect(err).ToNot(HaveOccurred()) g.Expect(lockInfo.MachineName).To(Equal(machine.Name)) g.Expect(lockInfo.MachineNamespace).To(Equal(machine.Namespace)) })