From 07b84c965e0b800fbb10d6adf0f375b43d093bd3 Mon Sep 17 00:00:00 2001 From: PJ Date: Thu, 23 Apr 2026 17:27:51 +0700 Subject: [PATCH] docs(testrun): note WDA warmup location above WaitForHealth --- internal/testrun/driver.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/testrun/driver.go b/internal/testrun/driver.go index 435fbfe..a0d8539 100644 --- a/internal/testrun/driver.go +++ b/internal/testrun/driver.go @@ -63,6 +63,9 @@ func buildDriver(ctx context.Context, options Options, stdout io.Writer) (driver _ = sidecarCommand.Process.Kill() return nil, nil, fmt.Errorf("dial sidecar: %w", err) } + // WaitForHealth confirms the gRPC sidecar is up. For iOS, the WDA warmup + // (absorbing the XCUITest startup race) runs inside IosDriverBackend.init + // in the sidecar - no additional sleep needed here. healthCtx, healthCancel := context.WithTimeout(ctx, sidecarStartupTimeout) if err := driverClient.WaitForHealth(healthCtx, 250e6); err != nil { healthCancel()