Skip to content

Commit f90bf15

Browse files
committed
replace ByteReadChannel to String in Tests
1 parent 1a4662f commit f90bf15

File tree

2 files changed

+6
-10
lines changed
  • KtorKMPFileCaching/src
    • commonTest/kotlin/fr/frankois944/ktorfilecaching
    • jvmTest/kotlin/fr/frankois944/ktorfilecaching

2 files changed

+6
-10
lines changed

KtorKMPFileCaching/src/commonTest/kotlin/fr/frankois944/ktorfilecaching/ApiTest.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,9 @@ class ApiTest {
401401
add(
402402
Pair(
403403
"Request_param__$index",
404-
ByteReadChannel(
405-
"""
406-
{"ip":"127.0.0.1", "time" : ${clock.now()}, "data" : ${clock.now().epochSeconds}.${clock.now().nanosecondsOfSecond}}
407-
""".trimIndent(),
408-
),
404+
"""
405+
{"ip":"127.0.0.1", "time" : ${clock.now()}, "data" : ${clock.now().epochSeconds}.${clock.now().nanosecondsOfSecond}}
406+
""".trimIndent(),
409407
),
410408
)
411409
}

KtorKMPFileCaching/src/jvmTest/kotlin/fr/frankois944/ktorfilecaching/ApiTest.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@ class ApiJVMTest {
7575
add(
7676
Pair(
7777
"Request_param__$index",
78-
ByteReadChannel(
79-
"""
80-
{"ip":"127.0.0.1", "time" : ${clock.now()}, "data" : ${clock.now().epochSeconds}.${clock.now().nanosecondsOfSecond}}
81-
""".trimIndent(),
82-
),
78+
"""
79+
{"ip":"127.0.0.1", "time" : ${clock.now()}, "data" : ${clock.now().epochSeconds}.${clock.now().nanosecondsOfSecond}}
80+
""".trimIndent(),
8381
),
8482
)
8583
}

0 commit comments

Comments
 (0)