From d7227940fc637c826eb1a5f22ed8248517256d6f Mon Sep 17 00:00:00 2001 From: Max Williams Date: Wed, 23 Aug 2023 21:11:58 +0200 Subject: [PATCH] fix this test --- pkg/checkup/pods_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/checkup/pods_test.go b/pkg/checkup/pods_test.go index 62cdc8d..70e3240 100644 --- a/pkg/checkup/pods_test.go +++ b/pkg/checkup/pods_test.go @@ -101,7 +101,7 @@ func TestCheckPodsBadContainerStatuses(t *testing.T) { result := CheckPods(&dummyResources) assert.Len(t, result.Symptoms, 1) - assert.Equal(t, "container 'c1' is not ready but pod started -0.0 mins ago", result.Symptoms[0].Message) + assert.Equal(t, "container 'c1' is not ready but pod started 0.0 mins ago", result.Symptoms[0].Message) assert.Equal(t, "warning", result.Symptoms[0].Severity) } @@ -220,7 +220,7 @@ func TestCheckPodsWithRestarts(t *testing.T) { result := CheckPods(&dummyResources) assert.Len(t, result.Symptoms, 1) - assert.Equal(t, "container 'c1' was restarted -0.0 mins ago: 1 (exit code) Crashed (reason)", result.Symptoms[0].Message) + assert.Equal(t, "container 'c1' was restarted 0.0 mins ago: 1 (exit code) Crashed (reason)", result.Symptoms[0].Message) assert.Equal(t, "critical", result.Symptoms[0].Severity) }