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:
joyhsia authored and GitHub committed 2026-11-21 13:59:31 +00:00
1 parent db81226395
commit 4729a99ebf
1 file changed
+1 -1
+1 -1
View File
@@ -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 {