Skip to content

Commit

Permalink
Merge pull request #88 from mhrabovcin/mh/simplify-grace-period-asser…
Browse files Browse the repository at this point in the history
…tion

chore: simplify deletion grace period assertion
  • Loading branch information
mhrabovcin authored Mar 28, 2024
2 parents 5101d02 + 098ace1 commit bb5b518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rewriter/generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestGeneratedValues(t *testing.T) {
assert.Equal(t, "generated-", pod.GetGenerateName())
assert.Equal(t, timestamp.Format(time.RFC3339), pod.GetCreationTimestamp().In(time.UTC).Format(time.RFC3339))
assert.Equal(t, timestamp.Format(time.RFC3339), pod.GetDeletionTimestamp().In(time.UTC).Format(time.RFC3339))
assert.Equal(t, int64(30), ptr.Deref(pod.GetDeletionGracePeriodSeconds(), 0))
assert.EqualValues(t, 30, pod.GetDeletionGracePeriodSeconds())
assert.Equal(t, types.UID("1000"), pod.GetUID())
assert.Equal(t, "2000", pod.GetResourceVersion())
}

0 comments on commit bb5b518

Please sign in to comment.