Skip to content

Commit 1d616b8

Browse files
committed
fix(ios): require explicit runner startup
1 parent 9e16511 commit 1d616b8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ final class RunnerTests: XCTestCase {
9191

9292
@MainActor
9393
func testCommand() throws {
94+
let isHeadlessStartup = ProcessInfo.processInfo.environment["AGENT_DEVICE_RUNNER_HEADLESS_STARTUP"] == "1"
95+
if !isHeadlessStartup {
96+
NSLog("AGENT_DEVICE_RUNNER_HEADLESS_STARTUP=0")
97+
return
98+
}
99+
94100
doneExpectation = expectation(description: "agent-device command handled")
95101
NSLog("AGENT_DEVICE_RUNNER_HEADLESS_STARTUP=1")
96102
let desiredPort = RunnerEnv.resolvePort()

0 commit comments

Comments
 (0)