Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
amanjeetsingh150 committed Jan 29, 2025
1 parent 0285243 commit f0973b9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions maestro-client/src/test/java/maestro/ios/MockXCTestInstaller.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ class MockXCTestInstaller(

private var attempts = 0

override fun start(): XCTestClient? {
override fun start(): XCTestClient {
attempts++
for (i in 0..simulator.installationRetryCount) {
assertThat(simulator.runningApps()).doesNotContain("dev.mobile.maestro-driver-iosUITests.xctrunner")
}
return if (simulator.shouldInstall) {
simulator.installXCTestDriver()
XCTestClient("localhost", 22807)
} else {
null
}
simulator.installXCTestDriver()
return XCTestClient("localhost", 22807)
}

override fun uninstall(): Boolean {
Expand Down

0 comments on commit f0973b9

Please sign in to comment.