maestro icon indicating copy to clipboard operation
maestro copied to clipboard

Fix "Protocol family unavailable" on rerun after failure

Open sjchmiela opened this issue 1 year ago • 0 comments

Proposed Changes

I think xcTestDriverStatusCheck may return a response object with an error response or throw. In isChannelAlive, where we care about whether channel is alive we should treat an exception as an isChannelAlive = false.

Testing

I verified this is valid Kotlin code and looks similar to ensureOpen.

Issues Fixed

I've run into the "Protocol family unavailable" after a CI-run test job fails to connect to XCUITest server. I believe the xcTestDriverStatusCheck should be wrapped with try-catch, as it is in ensureOpen().

sjchmiela avatar Feb 05 '24 21:02 sjchmiela