File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
gradle-conventions/src/main/kotlin
src/commonMain/kotlin/kotlinx/rpc/krpc/test Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,12 @@ fun PublishingExtension.configurePublication() {
73
73
fixModuleMetadata(project)
74
74
}
75
75
76
+ // no way around this: https://github.com/gradle/gradle/issues/26091
77
+ val signingTasks = tasks.withType<Sign >()
78
+ tasks.withType<PublishToMavenRepository >().configureEach {
79
+ dependsOn(signingTasks)
80
+ }
81
+
76
82
logger.info(" Project ${project.name} -> Publication configured: $name , $version " )
77
83
}
78
84
}
Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
6
+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
6
7
import org.jetbrains.kotlin.gradle.targets.js.testing.KotlinJsTest
7
8
import org.jetbrains.kotlin.gradle.targets.jvm.tasks.KotlinJvmTest
9
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
8
10
import java.nio.file.Files
9
11
10
12
plugins {
@@ -14,6 +16,16 @@ plugins {
14
16
alias(libs.plugins.atomicfu)
15
17
}
16
18
19
+ tasks.withType<KotlinCompile > {
20
+ if (this .name.contains(" Test" )) {
21
+ compilerOptions {
22
+ // for kotlin.time.Clock API
23
+ languageVersion.set(KotlinVersion .KOTLIN_2_1 )
24
+ apiVersion.set(KotlinVersion .KOTLIN_2_1 )
25
+ }
26
+ }
27
+ }
28
+
17
29
kotlin {
18
30
sourceSets {
19
31
commonMain {
Original file line number Diff line number Diff line change @@ -305,13 +305,13 @@ abstract class KrpcTransportTestBase {
305
305
}
306
306
307
307
@Test
308
- fun `RPC should be able to receive 100_000 ints in reasonable time` () = runTest(timeout = JS_EXTENDED_TIMEOUT ) {
308
+ fun RPC_should_be_able_to_receive_100_000_ints_in_reasonable_time () = runTest(timeout = JS_EXTENDED_TIMEOUT ) {
309
309
val n = 100_000
310
310
assertEquals(client.getNInts(n).last(), n)
311
311
}
312
312
313
313
@Test
314
- fun `RPC should be able to receive 100_000 ints with batching in reasonable time` () = runTest {
314
+ fun RPC_should_be_able_to_receive_100_000_ints_with_batching_in_reasonable_time () = runTest {
315
315
val n = 100_000
316
316
assertEquals(client.getNIntsBatched(n).last().last(), n)
317
317
}
@@ -405,7 +405,7 @@ abstract class KrpcTransportTestBase {
405
405
}
406
406
407
407
@Test
408
- fun `rpc continuation is called in the correct scope and doesn't block other rpcs` () = runTest {
408
+ fun rpc_continuation_is_called_in_the_correct_scope_and_doesnt_block_other_rpcs () = runTest {
409
409
if (isJs) {
410
410
println (" Test is skipped on JS, because it doesn't support multiple threads." )
411
411
return @runTest
You can’t perform that action at this time.
0 commit comments