201: Revert adding RUN_SLOW_ASSERTIONS enabling in KtUsefulTestCase

This commit is contained in:
Nikolay Krasko
2020-03-31 16:42:37 +03:00
parent 34a64d9171
commit b199403c57
2 changed files with 13 additions and 0 deletions
@@ -97,8 +97,12 @@ public abstract class KtUsefulTestCase extends TestCase {
// Radar #5755208: Command line Java applications need a way to launch without a Dock icon.
System.setProperty("apple.awt.UIElement", "true");
// -- KOTLIN ADDITIONAL START --
FlexibleTypeImpl.RUN_SLOW_ASSERTIONS = true;
AbstractTypeChecker.RUN_SLOW_ASSERTIONS = true;
// -- KOTLIN ADDITIONAL END --
}
protected boolean shouldContainTempFiles() {
@@ -63,6 +63,8 @@ import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.kotlin.testFramework.MockComponentManagerCreationTracer;
import org.jetbrains.kotlin.types.AbstractTypeChecker;
import org.jetbrains.kotlin.types.FlexibleTypeImpl;
import org.junit.Assert;
import org.junit.ComparisonFailure;
@@ -124,6 +126,13 @@ public abstract class KtUsefulTestCase extends TestCase {
catch (Exception e) {
throw new RuntimeException(e);
}
// -- KOTLIN ADDITIONAL START --
FlexibleTypeImpl.RUN_SLOW_ASSERTIONS = true;
AbstractTypeChecker.RUN_SLOW_ASSERTIONS = true;
// -- KOTLIN ADDITIONAL END --
}
/**