diff options
| author | Bryan C. Mills <bcmills@google.com> | 2022-02-14 14:20:43 -0500 |
|---|---|---|
| committer | Bryan Mills <bcmills@google.com> | 2022-02-14 20:07:02 +0000 |
| commit | 86341886e2925764dc890ad96c141a1bc76043af (patch) | |
| tree | 473eb8993014c5403c13d4776d4f3779a55c365e | |
| parent | 1e6e3497d506cca640d89d202b2070f00e81b0cb (diff) | |
| download | go-x-crypto-86341886e2925764dc890ad96c141a1bc76043af.tar.xz | |
acme/autocert: skip renewal tests broken on windows/arm64
For golang/go#51080
Change-Id: Icf4414ab58bdea44b793a66770b4c05f9faf5387
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/385675
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
| -rw-r--r-- | acme/autocert/renewal_test.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/acme/autocert/renewal_test.go b/acme/autocert/renewal_test.go index ffe4af2..460a384 100644 --- a/acme/autocert/renewal_test.go +++ b/acme/autocert/renewal_test.go @@ -8,6 +8,7 @@ import ( "context" "crypto" "crypto/ecdsa" + "runtime" "testing" "time" @@ -42,6 +43,15 @@ func TestRenewalNext(t *testing.T) { } func TestRenewFromCache(t *testing.T) { + if runtime.GOOS == "windows" && runtime.GOARCH == "arm64" { + // This test was observed to fail frequently in Dial with "connectex: No + // connection could be made because the target machine actively refused it." + // + // Failures started around CL 381715, so it looks to me (bcmills) like an + // undiagnosed bug in (or exposed by) acmetest.CAServer. + t.Skipf("skipping test on windows/arm64: see https://go.dev/issue/51080") + } + man := testManager(t) man.RenewBefore = 24 * time.Hour @@ -127,6 +137,15 @@ func TestRenewFromCache(t *testing.T) { } func TestRenewFromCacheAlreadyRenewed(t *testing.T) { + if runtime.GOOS == "windows" && runtime.GOARCH == "arm64" { + // This test was observed to fail frequently in Dial with "connectex: No + // connection could be made because the target machine actively refused it." + // + // Failures started around CL 381715, so it looks to me (bcmills) like an + // undiagnosed bug in (or exposed by) acmetest.CAServer. + t.Skipf("skipping test on windows/arm64: see https://go.dev/issue/51080") + } + ca := acmetest.NewCAServer(t).Start() man := testManager(t) man.RenewBefore = 24 * time.Hour |
