Skip to content

Commit

Permalink
chore: fix ktor and coroutines versions
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkAtra committed Nov 5, 2024
1 parent 7b794cd commit 9bfe024
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@
<kotlin.code.style>official</kotlin.code.style>

<kord.version>0.15.0</kord.version>
<!-- keep the ktor version in sync with what kord uses to avoid unexpected errors -->
<ktor.version>3.0.1</ktor.version>
<agql-source-query.version>1.2.2</agql-source-query.version>
<java-uuid-generator.version>5.1.0</java-uuid-generator.version>
<potassium-nitrite.version>4.3.1-SNAPSHOT</potassium-nitrite.version>
<commons-validator.version>1.9.0</commons-validator.version>

<!-- keep these in sync with what kord uses to avoid unexpected errors -->
<ktor.version>3.0.0</ktor.version>
<kotlin-coroutines.version>1.9.0</kotlin-coroutines.version>

<mockito-kotlin.version>5.4.0</mockito-kotlin.version>
<wiremock.version>3.9.2</wiremock.version>
</properties>
Expand Down Expand Up @@ -101,6 +103,10 @@
<groupId>io.ktor</groupId>
<artifactId>ktor-client-okhttp-jvm</artifactId>
</dependency>
<dependency>
<groupId>io.ktor</groupId>
<artifactId>ktor-client-core-jvm</artifactId>
</dependency>

<!-- Discord -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class BotCompanionClientTest {
botCompanionClient.getCharacters("localhost", wireMockRuntimeInfo.httpPort)
}
assertThat(charactersResult.isSuccess).withFailMessage {
charactersResult.exceptionOrNull()?.message
charactersResult.exceptionOrNull()?.let { "${it.message}: ${it.stackTraceToString()}" }
}.isTrue()

val characters = charactersResult.getOrThrow()
Expand Down Expand Up @@ -133,7 +133,7 @@ class BotCompanionClientTest {
botCompanionClient.getCharacters("localhost", wireMockRuntimeInfo.httpPort, username, password)
}
assertThat(charactersResult.isSuccess).withFailMessage {
charactersResult.exceptionOrNull()?.message
charactersResult.exceptionOrNull()?.let { "${it.message}: ${it.stackTraceToString()}" }
}.isTrue()

val characters = charactersResult.getOrThrow()
Expand Down Expand Up @@ -208,7 +208,7 @@ class BotCompanionClientTest {
botCompanionClient.getPlayerActivities("localhost", wireMockRuntimeInfo.httpPort)
}
assertThat(playerActivitiesResult.isSuccess).withFailMessage {
playerActivitiesResult.exceptionOrNull()?.message
playerActivitiesResult.exceptionOrNull()?.let { "${it.message}: ${it.stackTraceToString()}" }
}.isTrue()

val playerActivities = playerActivitiesResult.getOrThrow()
Expand Down Expand Up @@ -255,7 +255,7 @@ class BotCompanionClientTest {
botCompanionClient.getPvpKills("localhost", wireMockRuntimeInfo.httpPort)
}
assertThat(pvpKillsResult.isSuccess).withFailMessage {
pvpKillsResult.exceptionOrNull()?.message
pvpKillsResult.exceptionOrNull()?.let { "${it.message}: ${it.stackTraceToString()}" }
}.isTrue()

val pvpKills = pvpKillsResult.getOrThrow()
Expand Down

0 comments on commit 9bfe024

Please sign in to comment.