-
Notifications
You must be signed in to change notification settings - Fork 15
Update dependencies #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| withTimeoutOrNull(timeoutMillis) { | ||
| deferred.await() | ||
| } ?: AdbTimeoutException().left() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the most part, this works the same as before, but we're now using Left with a specific exception type for timeout, instead of Right with null.
| FlagParser().parse( | ||
| *listOfNotNull( | ||
| "install-apks", | ||
| "--timeout-millis=$timeoutMillis", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new bundletool version added this flag, so we can let it handle timeout itself now, instead of wrapping this in the coroutine timeout stuff.
| is AdbTimeoutException -> { | ||
| logger.error("$progress -> ${device.serial}: ${test.classAndMethodName}: TIMED OUT") | ||
| TestResult.Failed(null, "Test timed out", device.serial) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Behavior should be exactly the same as before, we're just doing it by checking for the AdbTimeoutException instead of checking for null on the Right.
aballano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
🥅 What is the goal?
💻 How is it implemented?
This should be mostly done, but I'm still testing all the cases