diff --git a/pkg/clustermanager/cluster_manager_test.go b/pkg/clustermanager/cluster_manager_test.go index 94f0e8a3d49b..f4a2a1e48e65 100644 --- a/pkg/clustermanager/cluster_manager_test.go +++ b/pkg/clustermanager/cluster_manager_test.go @@ -562,7 +562,7 @@ func TestClusterManagerMoveKubectlWaitRetrySuccess(t *testing.T) { m.client.EXPECT().GetMachines(ctx, from, to.Name) m.client.EXPECT().WaitForClusterReady(ctx, from, "1h0m0s", to.Name) m.client.EXPECT().MoveManagement(ctx, from, to, to.Name) - firstTry := m.client.EXPECT().WaitForControlPlaneReady(ctx, to, "15m0s", to.Name).Return(errors.New("executing wait: error: the server doesn't have a resource type \"clusters\"\n")) + firstTry := m.client.EXPECT().WaitForControlPlaneReady(ctx, to, "15m0s", to.Name).Return(errors.New("executing wait: error: the server doesn't have a resource type \"clusters\"")) secondTry := m.client.EXPECT().WaitForControlPlaneReady(ctx, to, "15m0s", to.Name).Return(nil) gomock.InOrder( firstTry,