File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
gradle-conventions/src/main/kotlin/util/targets
krpc/krpc-test/src/commonMain/kotlin/kotlinx/rpc/krpc/test Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ fun KmpConfig.configureJs() {
22
22
nodejs {
23
23
testTask {
24
24
useMocha {
25
- timeout = " 100s "
25
+ timeout = " 300s "
26
26
}
27
27
}
28
28
}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import kotlinx.serialization.encoding.Encoder
28
28
import kotlinx.serialization.modules.SerializersModule
29
29
import kotlin.coroutines.cancellation.CancellationException
30
30
import kotlin.test.*
31
+ import kotlin.time.Duration.Companion.seconds
31
32
32
33
internal object LocalDateSerializer : KSerializer<LocalDate> {
33
34
override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor (" LocalDate" , PrimitiveKind .STRING )
@@ -285,7 +286,7 @@ abstract class KrpcTransportTestBase {
285
286
}
286
287
287
288
@Test
288
- fun `RPC should be able to receive 100_000 ints in reasonable time` () = runTest {
289
+ fun `RPC should be able to receive 100_000 ints in reasonable time` () = runTest(timeout = JS_EXTENDED_TIMEOUT ) {
289
290
val n = 100_000
290
291
assertEquals(client.getNInts(n).last(), n)
291
292
}
@@ -437,4 +438,6 @@ abstract class KrpcTransportTestBase {
437
438
}
438
439
}
439
440
441
+ private val JS_EXTENDED_TIMEOUT = if (isJs) 300 .seconds else 60 .seconds
442
+
440
443
internal expect val isJs: Boolean
You can’t perform that action at this time.
0 commit comments