Skip to content

Commit

Permalink
fix: Error shows on flow runs "Failed to reach out XCUITest Server" (#…
Browse files Browse the repository at this point in the history
…986)

return an error response instead of throwing custom exception for OkHttpClient networkInterceptor
  • Loading branch information
artem888 authored Apr 12, 2023
1 parent 1eb3a54 commit 7d68775
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ class XCTestDriverClient(
.code(200)
.build()
} else {
throw XCTestDriverUnreachable("Failed to reach out XCUITest Server in ReturnOkOnShutdown")
Response.Builder()
.request(it.request())
.protocol(Protocol.HTTP_1_1)
.code(400)
.build()
}
}
})
Expand Down

0 comments on commit 7d68775

Please sign in to comment.