chore: increase test client timeout

This commit is contained in:
Fernandez Ludovic 2026-01-28 20:43:05 +01:00
commit 94db7bc857
2 changed files with 4 additions and 1 deletions

View file

@ -36,7 +36,7 @@ func (w *HTTPProvider) Present(_ context.Context, _, token, keyAuth string) erro
mc := memcache.New(host)
// Only because this is slow on GitHub action.
mc.Timeout = 5 * time.Second
mc.Timeout = 1 * time.Second
item := &memcache.Item{
Key: challengePath,

View file

@ -5,6 +5,7 @@ import (
"path"
"strings"
"testing"
"time"
"github.com/bradfitz/gomemcache/memcache"
"github.com/go-acme/lego/v5/challenge/http01"
@ -109,6 +110,8 @@ func TestMemcachedPresentPartialFailureMultiHost(t *testing.T) {
for _, host := range memcachedHosts {
mc := memcache.New(host)
// Only because this is slow on GitHub action.
mc.Timeout = 1 * time.Second
i, err := mc.Get(challengePath)
require.NoError(t, err)