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)) } }() }