From 1cc820637efea60c9034dcb334cc0dee9e2cbf5f Mon Sep 17 00:00:00 2001 From: PJ Date: Sun, 7 Jun 2026 15:59:15 +0530 Subject: [PATCH] fix(companion): keep serving after an automation failure --- companion/Sources/RunnerTestCase.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/companion/Sources/RunnerTestCase.swift b/companion/Sources/RunnerTestCase.swift index 9cc17bb..43af2e5 100644 --- a/companion/Sources/RunnerTestCase.swift +++ b/companion/Sources/RunnerTestCase.swift @@ -4,6 +4,9 @@ import XCTest // in a run loop so the simulator process stays alive serving the protocol. final class RunnerTestCase: XCTestCase { func testServeForever() throws { + // A failed automation call must never end the test: the server has to + // keep serving so the host can recover and retry. + continueAfterFailure = true let server = try Server() server.start() RunLoop.current.run()