diff --git a/models/confirmation_test.go b/models/confirmation_test.go index afa08bc6..50e975f7 100644 --- a/models/confirmation_test.go +++ b/models/confirmation_test.go @@ -68,7 +68,7 @@ func Test_NewConfirmation(t *testing.T) { t.Fail() } - if confirmation.ExpiresAt.IsZero() { + if confirmation.ExpiresAt == nil || confirmation.ExpiresAt.IsZero() { t.Errorf("expected expiresAt to be non-Zero") }