diff options
| author | Daniel McCarney <daniel@binaryparadox.net> | 2025-07-31 13:53:34 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-08-01 08:44:22 -0700 |
| commit | 1fda73153feef7b246f24005838c387e354e5e3b (patch) | |
| tree | 299e13e5f6291cb1fd353e9632e7629417a28ccf | |
| parent | 1b4c3d2e8c8be172c6af8f2f72778e69e74d2e78 (diff) | |
| download | go-x-crypto-1fda73153feef7b246f24005838c387e354e5e3b.tar.xz | |
acme: increase pebble test waitForServer attempts
In CI it seems that occasionally we can't connect to the test servers
within 10 tries, and the test flakes. Let's give the process more
attempts.
Updates golang/go#74437
Change-Id: I74d6cea83468a3a572ec4b52ff7314c778c664cf
Cq-Include-Trybots: luci.golang.try:x_crypto-gotip-linux-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/692075
Auto-Submit: Daniel McCarney <daniel@binaryparadox.net>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Mark Freeman <mark@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
| -rw-r--r-- | acme/pebble_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/acme/pebble_test.go b/acme/pebble_test.go index af7aee6..e373849 100644 --- a/acme/pebble_test.go +++ b/acme/pebble_test.go @@ -692,14 +692,14 @@ func startPebbleEnvironment(t *testing.T, config *environmentConfig) environment func waitForServer(t *testing.T, addr string) { t.Helper() - for i := 0; i < 10; i++ { + for i := 0; i < 20; i++ { if conn, err := net.Dial("tcp", addr); err == nil { conn.Close() return } time.Sleep(time.Duration(i*100) * time.Millisecond) } - t.Fatalf("failed to connect to %q after 10 tries", addr) + t.Fatalf("failed to connect to %q after 20 tries", addr) } // fetchModule fetches the module at the given version and returns the directory |
