-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add ability to retry runTest on backend #4499
Conversation
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.
👍 👍
it looks like server is not restarted between repeats, let me check if I can fix it |
This failure seems caused by the latest Tomcat update: #4470 |
Thanks, will check what has been changed |
fun collectUnhandledException(error: Throwable) // TODO: better name? | ||
fun runTest(block: suspend CoroutineScope.() -> Unit): TestResult | ||
fun runTest(timeout: Duration, block: suspend CoroutineScope.() -> Unit): TestResult | ||
fun runTest(timeout: Duration = 60.seconds, block: suspend CoroutineScope.() -> Unit): TestResult |
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.
I'm not sure about such a big default timeout. Successful tests usually run faster.
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.
Could you tell me if you have any value in mind?
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.
According to our Develocity statistics, 30 seconds should be enough for all tests. While most of the tests finish in less than 10 seconds, we have some tests taking ~20 seconds to finish.
TBH I thought about a smaller timeout? like 5 seconds, but statistics it won't be enough 😅
So this comment is optional to fix.
No description provided.