Skip to content

Commit

Permalink
Merge pull request #1802 from robstoll/workaround/doulbe-printed-erro…
Browse files Browse the repository at this point in the history
…r-message

another hack/workaround for the double exception msg printing problem
  • Loading branch information
robstoll authored Aug 1, 2024
2 parents fefb186 + a7f6f32 commit 641205d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ actual class AtriumError internal actual constructor(message: String) : Assertio
val isDoublePrintingTestRunner = Thread.currentThread().stackTrace[2].let {
it.className.startsWith("org.jetbrains.spek.tooling.adapter.sm") ||
it.className.startsWith("org.spekframework.ide") ||
it.className == "org.gradle.internal.serialize.ExceptionPlaceholder"
it.className == "org.gradle.internal.serialize.ExceptionPlaceholder" ||
it.className == "org.gradle.api.internal.tasks.testing.DefaultTestFailure"
}
return if (isDoublePrintingTestRunner) {
""
Expand Down

0 comments on commit 641205d

Please sign in to comment.