Skip to content

Commit

Permalink
Give a bigger opportunity window for cancellation in our flaky tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwwdfsad authored May 24, 2022
1 parent 59488d1 commit c5b5c66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit c5b5c66

Please sign in to comment.