Skip to content

Commit

Permalink
Gradle: Upgrade Kotest to version 5.4.2
Browse files Browse the repository at this point in the history
See: https://github.com/kotest/kotest/releases/tag/v5.4.2

Signed-off-by: Marcel Bochtler <git@bochtler.io>
  • Loading branch information
MarcelBochtler committed Aug 14, 2022
1 parent bbcabec commit e52a986
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions clients/github-graphql/src/test/kotlin/GitHubServiceTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import io.kotest.matchers.collections.containExactly
import io.kotest.matchers.collections.containExactlyInAnyOrder
import io.kotest.matchers.collections.shouldHaveSize
import io.kotest.matchers.nulls.beNull
import io.kotest.matchers.result.shouldBeFailureOfType
import io.kotest.matchers.result.shouldBeFailure
import io.kotest.matchers.result.shouldBeSuccess
import io.kotest.matchers.should
import io.kotest.matchers.shouldBe
Expand Down Expand Up @@ -83,7 +83,7 @@ class GitHubServiceTest : WordSpec({

val issuesResult = service.repositoryIssues(REPO_OWNER, REPO_NAME)

issuesResult.shouldBeFailureOfType<ClientRequestException>()
issuesResult.shouldBeFailure<ClientRequestException>()
}

"handle a connection error" {
Expand All @@ -95,7 +95,7 @@ class GitHubServiceTest : WordSpec({

val issuesResult = service.repositoryIssues(REPO_OWNER, REPO_NAME)

issuesResult.shouldBeFailureOfType<ConnectException>()
issuesResult.shouldBeFailure<ConnectException>()
}

"detect errors in the GraphQL result" {
Expand All @@ -111,7 +111,7 @@ class GitHubServiceTest : WordSpec({

val issuesResult = service.repositoryIssues(REPO_OWNER, REPO_NAME)

issuesResult.shouldBeFailureOfType<QueryException>()
issuesResult.shouldBeFailure<QueryException>()
val exception = issuesResult.exceptionOrNull() as QueryException
exception.message should contain("'IssuesQuery' contains errors")
exception.errors shouldHaveSize 1
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jruby = "9.3.6.0"
jschAgentProxy = "0.0.7"
jslt = "0.1.12"
jsonSchemaValidator = "1.0.72"
kotest = "5.4.0"
kotest = "5.4.2"
kotlinxCoroutines = "1.6.4"
kotlinxHtml = "0.8.0"
kotlinxSerialization = "1.3.3"
Expand Down

0 comments on commit e52a986

Please sign in to comment.