diff --git a/coroutines/src/androidUnitTest/kotlin/SortedBinaryTreeNodeTests.android.kt b/coroutines/src/androidUnitTest/kotlin/SortedBinaryTreeNodeTests.android.kt index 4ab57abfee1..75410922c07 100644 --- a/coroutines/src/androidUnitTest/kotlin/SortedBinaryTreeNodeTests.android.kt +++ b/coroutines/src/androidUnitTest/kotlin/SortedBinaryTreeNodeTests.android.kt @@ -1,2 +1,2 @@ -actual val AllowDeepReInsertOnWorksTest: Boolean +actual val AllowDeepInsertOnWorksTest: Boolean get() = true \ No newline at end of file diff --git a/coroutines/src/commonTest/kotlin/SortedBinaryTreeNodeTests.kt b/coroutines/src/commonTest/kotlin/SortedBinaryTreeNodeTests.kt index 6dfb0156d15..03f81d15ace 100644 --- a/coroutines/src/commonTest/kotlin/SortedBinaryTreeNodeTests.kt +++ b/coroutines/src/commonTest/kotlin/SortedBinaryTreeNodeTests.kt @@ -9,9 +9,8 @@ import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue import kotlin.time.Duration.Companion.seconds -import kotlin.time.measureTime -expect val AllowDeepReInsertOnWorksTest: Boolean +expect val AllowDeepInsertOnWorksTest: Boolean class SortedBinaryTreeNodeTests { @Test @@ -46,8 +45,8 @@ class SortedBinaryTreeNodeTests { } } @Test - fun deepReInsertOnWorks() = runTest(timeout = 240.seconds) { - if (AllowDeepReInsertOnWorksTest == false) return@runTest + fun deepReInsertOnWorks() = runTest(timeout = 300.seconds) { + if (AllowDeepInsertOnWorksTest == false) return@runTest val zeroNode = SortedBinaryTreeNode(0) val rangeRadius = 500 val nodes = mutableMapOf>() @@ -124,7 +123,8 @@ class SortedBinaryTreeNodeTests { assertTrue(sourceTreeSize == zeroNode.size()) } @Test - fun deepInsertOnWorks() = runTest(timeout = 440.seconds) { // 440 due to js targets -.- + fun deepInsertOnWorks() = runTest(timeout = 240.seconds) { + if (AllowDeepInsertOnWorksTest == false) return@runTest val zeroNode = SortedBinaryTreeNode(0) val rangeRadius = 500 val nodes = mutableMapOf>() diff --git a/coroutines/src/jsTest/kotlin/SortedBinaryTreeNodeTests.js.kt b/coroutines/src/jsTest/kotlin/SortedBinaryTreeNodeTests.js.kt index 3b385510216..4f2e6974a96 100644 --- a/coroutines/src/jsTest/kotlin/SortedBinaryTreeNodeTests.js.kt +++ b/coroutines/src/jsTest/kotlin/SortedBinaryTreeNodeTests.js.kt @@ -1,2 +1,2 @@ -actual val AllowDeepReInsertOnWorksTest: Boolean +actual val AllowDeepInsertOnWorksTest: Boolean get() = false \ No newline at end of file diff --git a/coroutines/src/jvmTest/kotlin/SortedBinaryTreeNodeTests.jvm.kt b/coroutines/src/jvmTest/kotlin/SortedBinaryTreeNodeTests.jvm.kt index 4ab57abfee1..75410922c07 100644 --- a/coroutines/src/jvmTest/kotlin/SortedBinaryTreeNodeTests.jvm.kt +++ b/coroutines/src/jvmTest/kotlin/SortedBinaryTreeNodeTests.jvm.kt @@ -1,2 +1,2 @@ -actual val AllowDeepReInsertOnWorksTest: Boolean +actual val AllowDeepInsertOnWorksTest: Boolean get() = true \ No newline at end of file diff --git a/coroutines/src/linuxArm64Test/kotlin/SortedBinaryTreeNodeTests.linuxArm64.kt b/coroutines/src/linuxArm64Test/kotlin/SortedBinaryTreeNodeTests.linuxArm64.kt index 4ab57abfee1..75410922c07 100644 --- a/coroutines/src/linuxArm64Test/kotlin/SortedBinaryTreeNodeTests.linuxArm64.kt +++ b/coroutines/src/linuxArm64Test/kotlin/SortedBinaryTreeNodeTests.linuxArm64.kt @@ -1,2 +1,2 @@ -actual val AllowDeepReInsertOnWorksTest: Boolean +actual val AllowDeepInsertOnWorksTest: Boolean get() = true \ No newline at end of file diff --git a/coroutines/src/linuxX64Test/kotlin/SortedBinaryTreeNodeTests.linuxX64.kt b/coroutines/src/linuxX64Test/kotlin/SortedBinaryTreeNodeTests.linuxX64.kt index 4ab57abfee1..75410922c07 100644 --- a/coroutines/src/linuxX64Test/kotlin/SortedBinaryTreeNodeTests.linuxX64.kt +++ b/coroutines/src/linuxX64Test/kotlin/SortedBinaryTreeNodeTests.linuxX64.kt @@ -1,2 +1,2 @@ -actual val AllowDeepReInsertOnWorksTest: Boolean +actual val AllowDeepInsertOnWorksTest: Boolean get() = true \ No newline at end of file diff --git a/coroutines/src/mingwX64Test/kotlin/SortedBinaryTreeNodeTests.mingwX64.kt b/coroutines/src/mingwX64Test/kotlin/SortedBinaryTreeNodeTests.mingwX64.kt index 4ab57abfee1..75410922c07 100644 --- a/coroutines/src/mingwX64Test/kotlin/SortedBinaryTreeNodeTests.mingwX64.kt +++ b/coroutines/src/mingwX64Test/kotlin/SortedBinaryTreeNodeTests.mingwX64.kt @@ -1,2 +1,2 @@ -actual val AllowDeepReInsertOnWorksTest: Boolean +actual val AllowDeepInsertOnWorksTest: Boolean get() = true \ No newline at end of file