diff --git a/acme/autocert/autocert.go b/acme/autocert/autocert.go index 0061c28..6b4cdf4 100644 --- a/acme/autocert/autocert.go +++ b/acme/autocert/autocert.go @@ -463,7 +463,7 @@ func (m *Manager) cert(ctx context.Context, ck certKey) (*tls.Certificate, error leaf: cert.Leaf, } m.state[ck] = s - go m.startRenew(ck, s.key, s.leaf.NotAfter) + m.startRenew(ck, s.key, s.leaf.NotAfter) return cert, nil } @@ -609,7 +609,7 @@ func (m *Manager) createCert(ctx context.Context, ck certKey) (*tls.Certificate, } state.cert = der state.leaf = leaf - go m.startRenew(ck, state.key, state.leaf.NotAfter) + m.startRenew(ck, state.key, state.leaf.NotAfter) return state.tlscert() } diff --git a/acme/autocert/autocert_test.go b/acme/autocert/autocert_test.go index 59f6e0e..789a441 100644 --- a/acme/autocert/autocert_test.go +++ b/acme/autocert/autocert_test.go @@ -382,7 +382,7 @@ func TestGetCertificate(t *testing.T) { }, }, { - name: "expiredCache", + name: "almostExpiredCache", hello: clientHelloInfo("example.org", algECDSA), domain: "example.org", prepare: func(t *testing.T, man *Manager, s *acmetest.CAServer) {