Skip to content

Commit

Permalink
Ktor 3.0.0-rc-2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Oct 3, 2024
1 parent 21c47b7 commit 4b8bbcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
kotlin = "2.0.20"
spring-boot = "3.3.4"
spring-dependencyManagement = "1.1.6"
ktor = "3.0.0-rc-1"
ktor = "3.0.0-rc-2"
dgsBom = "9.1.2"
dgsCodegen = "6.3.0"
detekt = "1.23.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class RedisClientTest {

redisClient.set("a", "3", keyExpirySeconds = 10)

assert(mockEngine.requestHistory[0].url.pathSegments.last() == "a")
assert(mockEngine.requestHistory[0].url.rawSegments.last() == "a")
assert(mockEngine.requestHistory[0].url.encodedQuery == "EX=10")
assert(mockEngine.requestHistory[0].body.toString() == "TextContent[application/json] \"3\"")
assert(mockEngine.responseHistory[0].statusCode == HttpStatusCode.OK)
Expand All @@ -86,7 +86,7 @@ class RedisClientTest {

redisClient.set("a", "3")

assert(mockEngine.requestHistory[0].url.pathSegments.last() == "a")
assert(mockEngine.requestHistory[0].url.rawSegments.last() == "a")
assert(mockEngine.requestHistory[0].url.encodedQuery == "EX=3600")
assert(mockEngine.requestHistory[0].body.toString() == "TextContent[application/json] \"3\"")
assert(mockEngine.responseHistory[0].statusCode == HttpStatusCode.InternalServerError)
Expand Down

0 comments on commit 4b8bbcb

Please sign in to comment.