Skip to content
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

Give a bigger opportunity window for cancellation in our flaky tests #3301

Merged
merged 1 commit into from May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -132,9 +132,9 @@ class WithTimeoutOrNullDurationTest : TestBase() {
@Test
fun testOuterTimeout() = runTest {
var counter = 0
val result = withTimeoutOrNull(250.milliseconds) {
val result = withTimeoutOrNull(320.milliseconds) {
while (true) {
val inner = withTimeoutOrNull(100.milliseconds) {
val inner = withTimeoutOrNull(150.milliseconds) {
while (true) {
yield()
}
Expand Down
4 changes: 2 additions & 2 deletions kotlinx-coroutines-core/common/test/WithTimeoutOrNullTest.kt
Expand Up @@ -129,9 +129,9 @@ class WithTimeoutOrNullTest : TestBase() {
@Test
fun testOuterTimeout() = runTest {
var counter = 0
val result = withTimeoutOrNull(250) {
val result = withTimeoutOrNull(320) {
while (true) {
val inner = withTimeoutOrNull(100) {
val inner = withTimeoutOrNull(150) {
while (true) {
yield()
}
Expand Down