Skip to content

Commit a62433e

Browse files
committed
Update gRPC sample
1 parent cdad19a commit a62433e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

samples/grpc-app/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
plugins {
66
kotlin("jvm") version "2.1.0"
77
kotlin("plugin.serialization") version "2.1.0"
8-
id("org.jetbrains.kotlinx.rpc.plugin") version "0.5.0-eap-grpc-1"
8+
id("org.jetbrains.kotlinx.rpc.plugin") version "0.5.0-grpc-6"
99
id("com.google.protobuf") version "0.9.4"
1010
}
1111

@@ -22,7 +22,7 @@ kotlin {
2222
}
2323

2424
dependencies {
25-
implementation("org.jetbrains.kotlinx:kotlinx-rpc-grpc-core:0.5.0-eap-grpc-1")
25+
implementation("org.jetbrains.kotlinx:kotlinx-rpc-grpc-core:0.5.0-grpc-6")
2626
implementation("ch.qos.logback:logback-classic:1.5.16")
2727
implementation("io.grpc:grpc-netty:1.69.0")
2828
}
@@ -36,7 +36,7 @@ protobuf {
3636

3737
plugins {
3838
create("kotlinx-rpc") {
39-
artifact = "org.jetbrains.kotlinx:kotlinx-rpc-protobuf-plugin:0.5.0-eap-grpc-1:all@jar"
39+
artifact = "org.jetbrains.kotlinx:kotlinx-rpc-protobuf-plugin:0.5.0-grpc-6:all@jar"
4040
}
4141

4242
create("grpc") {

samples/simple-ktor-app/src/test/kotlin/ApplicationTest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ class ApplicationTest {
4141

4242
val flowList = mutableListOf<String?>()
4343

44-
assertEquals(null, recognizer.awaitFieldInitialization { currentlyProcessedImage }.value)
45-
4644
val job = CoroutineScope(Dispatchers.IO).launch {
4745
streamScoped {
4846
recognizer.currentlyProcessedImage().collect { image ->
@@ -61,6 +59,6 @@ class ApplicationTest {
6159

6260
job.join()
6361

64-
assertContentEquals(listOf(null, "010203", null, "000203"), flowList)
62+
assertContentEquals(listOf("010203", null, "000203"), flowList)
6563
}
6664
}

0 commit comments

Comments
 (0)