Skip to content

Commit 481393b

Browse files
committed
Fix tests
1 parent 53ae4eb commit 481393b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

krpc/krpc-test/src/commonTest/kotlin/kotlinx/rpc/krpc/test/cancellation/CancellationTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ class CancellationTest {
694694
}
695695

696696
@Test
697+
@Ignore // KRPC-169
697698
fun testGCNonSuspendable() = runCancellationTest {
698699
val firstDone = CompletableDeferred<Unit>()
699700
val latch = CompletableDeferred<Unit>()

tests/compiler-plugin-tests/src/testData/diagnostics/rpcService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import kotlinx.serialization.Contextual
1212
import kotlinx.rpc.annotations.Rpc
1313
import kotlinx.rpc.krpc.streamScoped
1414
import kotlinx.rpc.krpc.withStreamScope
15-
import kotlinx.rpc.krpc.StreamScope
15+
import <!DEPRECATION!>kotlinx.rpc.krpc.StreamScope<!>
1616
import kotlinx.rpc.krpc.invokeOnStreamScopeCompletion
1717
import kotlinx.rpc.internal.utils.ExperimentalRpcApi
1818

tests/compiler-plugin-tests/src/testData/diagnostics/strictMode.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import kotlinx.serialization.Contextual
2929
import kotlinx.rpc.annotations.Rpc
3030
import kotlinx.rpc.krpc.streamScoped
3131
import kotlinx.rpc.krpc.withStreamScope
32-
import kotlinx.rpc.krpc.StreamScope
32+
import <!DEPRECATION!>kotlinx.rpc.krpc.StreamScope<!>
3333
import kotlinx.rpc.krpc.invokeOnStreamScopeCompletion
3434
import kotlinx.rpc.internal.utils.ExperimentalRpcApi
3535

@@ -81,8 +81,8 @@ interface MyService {
8181
}
8282

8383
fun main(): Unit = runBlocking {
84-
<!STREAM_SCOPE_FUNCTION_IN_RPC!>streamScoped<!> {}
85-
val scope = <!STREAM_SCOPE_FUNCTION_IN_RPC!>StreamScope<!>(Job())
86-
<!STREAM_SCOPE_FUNCTION_IN_RPC!>withStreamScope<!>(scope) {}
87-
<!STREAM_SCOPE_FUNCTION_IN_RPC!>invokeOnStreamScopeCompletion<!> {}
84+
<!DEPRECATION, STREAM_SCOPE_FUNCTION_IN_RPC!>streamScoped<!> {}
85+
val scope = <!DEPRECATION, STREAM_SCOPE_FUNCTION_IN_RPC!>StreamScope<!>(Job())
86+
<!DEPRECATION, STREAM_SCOPE_FUNCTION_IN_RPC!>withStreamScope<!>(scope) {}
87+
<!DEPRECATION, STREAM_SCOPE_FUNCTION_IN_RPC!>invokeOnStreamScopeCompletion<!> {}
8888
}

0 commit comments

Comments
 (0)