From fbd88190260fa81befeba2acab80ba753a605bf1 Mon Sep 17 00:00:00 2001 From: Walid Baruni Date: Wed, 18 Dec 2024 08:40:48 +0200 Subject: [PATCH] Fix TestConcurrentHealthCheckAndHeartbeat assertion --- pkg/orchestrator/nodes/manager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/orchestrator/nodes/manager_test.go b/pkg/orchestrator/nodes/manager_test.go index 72cb307bd1..ba7b6e0cb3 100644 --- a/pkg/orchestrator/nodes/manager_test.go +++ b/pkg/orchestrator/nodes/manager_test.go @@ -485,7 +485,7 @@ func (s *NodeManagerTestSuite) TestConcurrentHealthCheckAndHeartbeat() { }) // Either succeed or fail with concurrent update error if err != nil { - assert.Contains(s.T(), err.Error(), "concurrent update conflict") + s.True(bacerrors.IsErrorWithCode(err, nodes.ConcurrentUpdate)) } }() }