Skip to content

Commit 94e5878

Browse files
committed
Ignore code 405 on shutdown
1 parent 5ab633d commit 94e5878

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ subprojects {
7171
}
7272
}
7373

74-
7574
// disable "standalone" mode in simulator tests since it causes TLS issues. this means we need to manage the simulator
7675
// ourselves (booting / shutting down). FIXME: https://youtrack.jetbrains.com/issue/KT-38317
7776
val simulatorDeviceName = project.findProperty("iosSimulatorDevice") as? String ?: "iPhone 15"
@@ -96,7 +95,10 @@ subprojects {
9695
commandLine(xcrun, "simctl", "shutdown", simulatorDeviceName)
9796

9897
doLast {
99-
executionResult.get().assertNormalExitValue()
98+
val result = executionResult.get()
99+
if (result.exitValue != 405) {
100+
result.assertNormalExitValue()
101+
}
100102
}
101103
}
102104

0 commit comments

Comments
 (0)