Skip to content

Commit

Permalink
fix: deref grace period value
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrabovcin committed Mar 28, 2024
1 parent 947fa41 commit 57f9d73
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.EqualValues(t, 30, pod.GetDeletionGracePeriodSeconds())
assert.EqualValues(t, 30, ptr.Deref(pod.GetDeletionGracePeriodSeconds(), 0))
assert.Equal(t, types.UID("1000"), pod.GetUID())
assert.Equal(t, "2000", pod.GetResourceVersion())
}

0 comments on commit 57f9d73

Please sign in to comment.