Skip to content

Commit 14c652c

Browse files
committed
Reduce fail time to 7 days, since we run GH action weekly
Since we rely on the upstream certs, there is little we can do about "soon to expire" certificates
1 parent 6cb83c8 commit 14c652c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

embedded/rootcerts_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ func checkRootCertsPEM(t *testing.T, pemCerts []byte, whenFail time.Time, whenWa
110110
}
111111

112112
func TestCerts(t *testing.T) {
113-
// Check that certificates will still be valid in 1 month, warn if invalid in 3 months
114-
checkRootCertsPEM(t, []byte(embedded.MozillaCACertificatesPEM()), time.Now().AddDate(0, 1, 0), time.Now().AddDate(0, 3, 0))
113+
// Check that certificates will still be valid in 7 days, warn if invalid in 3 months
114+
checkRootCertsPEM(t, []byte(embedded.MozillaCACertificatesPEM()), time.Now().AddDate(0, 0, 7), time.Now().AddDate(0, 3, 0))
115115

116116
// Should fail
117117
// checkRootCertsPEM(t, []byte(embedded.MozillaCACertificatesPEM()), time.Now().AddDate(20, 0, 0), time.Now().AddDate(30, 0, 0))

0 commit comments

Comments
 (0)