Skip to content

Commit

Permalink
fix this test
Browse files Browse the repository at this point in the history
  • Loading branch information
max-rocket-internet committed Aug 23, 2023
1 parent de785f3 commit d722794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/checkup/pods_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit d722794

Please sign in to comment.