Skip to content

Commit f28f340

Browse files
authored
fix: test for expiry 3 months on Azure certs (#11362)
1 parent d257f81 commit f28f340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/azureidentity/azureidentity_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func TestExpiresSoon(t *testing.T) {
5959
cert, err := x509.ParseCertificate(block.Bytes)
6060
require.NoError(t, err)
6161

62-
expiresSoon := cert.NotAfter.Before(time.Now().AddDate(0, 6, 0))
62+
expiresSoon := cert.NotAfter.Before(time.Now().AddDate(0, 3, 0))
6363
if expiresSoon {
6464
t.Errorf("certificate expires within 6 months %s: %s", cert.NotAfter, cert.Subject.CommonName)
6565
} else {

0 commit comments

Comments
 (0)