Skip to content

Commit

Permalink
don't re-print entire result tree for leaf node assertion failures
Browse files Browse the repository at this point in the history
  • Loading branch information
robfletcher committed Aug 23, 2018
1 parent 91f962e commit 0580e86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0580e86

Please sign in to comment.