--- Return my diff window!
diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/JUnit5Assertions.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/JUnit5Assertions.kt
index a8600e9..c27ca83 100644
--- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/JUnit5Assertions.kt
+++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/JUnit5Assertions.kt
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.test.services
+import com.intellij.rt.execution.junit.FileComparisonFailure
import org.jetbrains.kotlin.test.util.convertLineSeparators
import org.jetbrains.kotlin.test.util.trimTrailingWhitespacesAndAddNewlineAtEOF
import org.jetbrains.kotlin.utils.rethrow
@@ -73,10 +74,9 @@
val (equalsToFile, expected) =
doesEqualToFile(expectedFile, actual, sanitizer, fileNotFoundMessageTeamCity, fileNotFoundMessageLocal)
if (!equalsToFile) {
- throw AssertionFailedError(
+ throw FileComparisonFailure(
"${differenceObtainedMessage()}: ${expectedFile.name}",
- FileInfo(expectedFile.absolutePath, expected.toByteArray(StandardCharsets.UTF_8)),
- actual,
+ expected, actual, expectedFile.absolutePath
)
}
}