docs(testrun): note WDA warmup location above WaitForHealth

This commit is contained in:
pj committed 2026-04-23 17:27:51 +07:00
1 parent 788dd94bc5
commit 07b84c965e
1 file changed
+3
+3
View File
@@ -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()