mirror of
https://github.com/restic/restic.git
synced 2026-11-23 13:52:39 +00:00
tests: allow more time for REST server startup (#22205)
The macOS failure in #22146 reaches the two-second readiness deadline. Give the test server ten seconds to start while retaining immediate readiness and context cancellation handling.
This commit is contained in:
1 parent
db81226395
commit
4729a99ebf
1 file changed
+1
-1
@@ -117,7 +117,7 @@ func runRESTServer(ctx context.Context, t testing.TB, dir, reqListenAddr string)
|
||||
select {
|
||||
case <-processCtx.Done():
|
||||
t.Fatal(context.Canceled)
|
||||
case <-time.NewTimer(2 * time.Second).C:
|
||||
case <-time.NewTimer(10 * time.Second).C:
|
||||
t.Fatal(context.DeadlineExceeded)
|
||||
case a, ok := <-listenAddrCh:
|
||||
if !ok {
|
||||
|
||||
Reference in new issue
Block a user