From 9aedfda3eab343daa11a871be202dd43eb3a41c1 Mon Sep 17 00:00:00 2001 From: Oleg Vasilev Date: Fri, 26 Jul 2024 12:38:04 +0200 Subject: [PATCH] fix the test for 1.28 Signed-off-by: Oleg Vasilev --- neonvm/controllers/vm_controller_unit_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neonvm/controllers/vm_controller_unit_test.go b/neonvm/controllers/vm_controller_unit_test.go index ce8a707cf..ee65397d5 100644 --- a/neonvm/controllers/vm_controller_unit_test.go +++ b/neonvm/controllers/vm_controller_unit_test.go @@ -241,8 +241,9 @@ func TestRunningPod(t *testing.T) { prettyPrint(t, pod) pod.Status.Phase = corev1.PodRunning - err = params.client.Update(params.ctx, &pod) + err = params.client.Status().Update(params.ctx, &pod) require.NoError(t, err) + assert.Equal(t, runnerRunning, runnerStatus(&pod)) // Round 2 res, err = params.r.Reconcile(params.ctx, req)