mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
chore: increase test client timeout
This commit is contained in:
parent
34ae361772
commit
94db7bc857
2 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue