Skip to content

Commit e8ad515

Browse files
committed
fix: correct certificate duration from 10 years to 1 year in generateResources tests
1 parent 801147d commit e8ad515

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/resources/generate_resources_pod_mutating_webhooks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func TestCreateCertificate(t *testing.T) {
123123
t.Errorf("Expected secret name 'test-class-webhook-secret', got '%s'", certificate.Spec.SecretName)
124124
}
125125

126-
expectedDuration := 87600 * time.Hour
126+
expectedDuration := 8760 * time.Hour
127127
if certificate.Spec.Duration.Duration != expectedDuration {
128128
t.Errorf("Expected duration '%v', got '%v'", expectedDuration, certificate.Spec.Duration.Duration)
129129
}

0 commit comments

Comments
 (0)