Skip to content

Commit b946964

Browse files
committed
Update tests
1 parent ab3d97d commit b946964

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

samples/ktor-android-app/gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ compose-plugin = "1.5.14" # https://mvnrepository.com/artifact/androidx.compose.
1111
compose-bom = "2024.09.02"
1212
material3 = "1.3.0"
1313
junit = "4.13.2"
14-
ktor = "2.3.12"
14+
ktor = "3.0.0-rc-1"
1515
kotlinx-serialization-json = "1.7.3"
1616
kotlinx-coroutines-core = "1.9.0"
1717
logback = "1.5.8"

samples/ktor-web-app/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Ktor Web App
22
Sample application with Kotlin/Js on frontend and Kotlin/Jvm on backend,that uses kRPC with Ktor to communicate.
33

4+
> Warning: the code is broken due to https://youtrack.jetbrains.com/issue/KT-71757/
5+
> No workarounds for now
6+
47
### Running frontend
58
To run frontend in development mode, run this command:
69
```bash

samples/ktor-web-app/gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
kotlin = "2.0.10"
33
kotlin-wrappers-bom = "1.0.0-pre.812"
4-
ktor = "2.3.12"
4+
ktor = "3.0.0-rc-1"
55
kotlinx-serialization-json = "1.7.3"
66
kotlinx-coroutines-core = "1.9.0"
77
logback = "1.5.8"

samples/ktor-web-app/server/src/test/kotlin/ApplicationTest.kt

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ import kotlin.test.assertEquals
1616
class ApplicationTest {
1717
@Test
1818
fun testRoot() = testApplication {
19+
application {
20+
module()
21+
}
22+
1923
val service = createClient {
2024
installRPC()
2125
}.rpc("/api") {

samples/simple-ktor-app/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
plugins {
66
kotlin("jvm") version "2.0.10"
77
kotlin("plugin.serialization") version "2.0.10"
8-
id("io.ktor.plugin") version "2.3.12"
8+
id("io.ktor.plugin") version "3.0.0-rc-1"
99
id("org.jetbrains.kotlinx.rpc.plugin") version "0.3.0"
1010
}
1111

@@ -35,10 +35,10 @@ dependencies {
3535
implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-client")
3636
implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-server")
3737

38-
implementation("io.ktor:ktor-client-cio-jvm")
38+
implementation("io.ktor:ktor-client-cio")
3939
implementation("io.ktor:ktor-server-netty-jvm")
4040
implementation("ch.qos.logback:logback-classic:1.5.8")
4141

42-
testImplementation("io.ktor:ktor-server-tests-jvm")
42+
testImplementation("io.ktor:ktor-server-test-host")
4343
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:2.0.10")
4444
}

0 commit comments

Comments
 (0)