adapt gradle files for new tests

This commit is contained in:
2025-02-26 22:01:39 +06:00
parent 98c7b48625
commit 85f11439e8
5 changed files with 11 additions and 9 deletions

View File

@@ -8,6 +8,8 @@ import kotlinx.coroutines.test.runTest
import kotlin.test.Test import kotlin.test.Test
import kotlin.test.assertEquals import kotlin.test.assertEquals
import kotlin.test.assertTrue import kotlin.test.assertTrue
import kotlin.time.Duration.Companion.seconds
import kotlin.time.measureTime
class SortedBinaryTreeNodeTests { class SortedBinaryTreeNodeTests {
@Test @Test
@@ -42,7 +44,7 @@ class SortedBinaryTreeNodeTests {
} }
} }
@Test @Test
fun deepInsertOnWorks() = runTest { fun deepInsertOnWorks() = runTest(timeout = 320.seconds) { // 320 due to js targets -.-
val zeroNode = SortedBinaryTreeNode(0) val zeroNode = SortedBinaryTreeNode(0)
val rangeRadius = 500 val rangeRadius = 500
val nodes = mutableMapOf<Int, SortedBinaryTreeNode<Int>>() val nodes = mutableMapOf<Int, SortedBinaryTreeNode<Int>>()

View File

@@ -15,14 +15,14 @@ kotlin {
browser { browser {
testTask { testTask {
useMocha { useMocha {
timeout = "60000" timeout = "600000"
} }
} }
} }
nodejs { nodejs {
testTask { testTask {
useMocha { useMocha {
timeout = "60000" timeout = "600000"
} }
} }
} }

View File

@@ -15,14 +15,14 @@ kotlin {
browser { browser {
testTask { testTask {
useMocha { useMocha {
timeout = "60000" timeout = "600000"
} }
} }
} }
nodejs { nodejs {
testTask { testTask {
useMocha { useMocha {
timeout = "60000" timeout = "600000"
} }
} }
} }

View File

@@ -15,14 +15,14 @@ kotlin {
browser { browser {
testTask { testTask {
useMocha { useMocha {
timeout = "60000" timeout = "600000"
} }
} }
} }
nodejs { nodejs {
testTask { testTask {
useMocha { useMocha {
timeout = "60000" timeout = "600000"
} }
} }
} }

View File

@@ -15,14 +15,14 @@ kotlin {
browser { browser {
testTask { testTask {
useMocha { useMocha {
timeout = "60000" timeout = "600000"
} }
} }
} }
nodejs { nodejs {
testTask { testTask {
useMocha { useMocha {
timeout = "60000" timeout = "600000"
} }
} }
} }