From 4729a99ebfbc48d9948d571c938aab4eb40ed63f Mon Sep 17 00:00:00 2001 From: joyhsia <2024141530037@stu.scu.edu.cn> Date: Sat, 21 Nov 2026 21:59:31 +0800 Subject: [PATCH] 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. --- internal/backend/rest/rest_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/rest/rest_test.go b/internal/backend/rest/rest_test.go index b0073d5e5..d669450ef 100644 --- a/internal/backend/rest/rest_test.go +++ b/internal/backend/rest/rest_test.go @@ -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 {