Skip to content

Commit

Permalink
relax test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ditrytus committed Sep 20, 2024
1 parent f0e6d95 commit 6f6df98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/v1alpha_slo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,8 @@ func assertV1alphaSLOsAreEqual(t *testing.T, expected, actual v1alphaSLO.SLO) {
actual.Spec.CreatedBy = ""
actual.Status = nil
actual.Spec.TimeWindows[0].Period = nil
if actual.Spec.Objectives[0].Value == nil {
actual.Spec.Objectives[0].Value = ptr(0.0)
}
assert.Equal(t, expected, actual)
}

0 comments on commit 6f6df98

Please sign in to comment.