From 0580e861d5e41a8d648a8b7040d6fa724c66a49f Mon Sep 17 00:00:00 2001 From: Rob Fletcher Date: Thu, 23 Aug 2018 00:10:19 -0700 Subject: [PATCH] don't re-print entire result tree for leaf node assertion failures --- .../kotlin/strikt/internal/opentest4j/AtomicAssertionFailure.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strikt-core/src/main/kotlin/strikt/internal/opentest4j/AtomicAssertionFailure.kt b/strikt-core/src/main/kotlin/strikt/internal/opentest4j/AtomicAssertionFailure.kt index a1782ed2..d5afc6da 100644 --- a/strikt-core/src/main/kotlin/strikt/internal/opentest4j/AtomicAssertionFailure.kt +++ b/strikt-core/src/main/kotlin/strikt/internal/opentest4j/AtomicAssertionFailure.kt @@ -11,7 +11,7 @@ internal class AtomicAssertionFailure( private val failure: AssertionResult<*> ) : AssertionFailedError(null, (failure.status as? Failed)?.cause) { override val message: String? - get() = failure.root.writeToString() + get() = failure.parent.writeToString() override fun isActualDefined(): Boolean = failure.status is ComparisonFailed