use junit fail instead of throw (#2114)

* use junit fail

* no pause
This commit is contained in:
Matthew Kennedy 2020-12-24 17:27:39 -08:00 committed by GitHub
parent 7be06627eb
commit a7846977ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -15,6 +15,8 @@ import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicReference;
import static org.junit.Assert.fail;
import static com.devexperts.logging.Logging.getLogging;
import static com.rusefi.waves.EngineReport.isCloseEnough;
@ -52,13 +54,6 @@ public class TestingUtils {
return angle;
}
private static void fail(String message) {
log.info("FAILURE: " + message);
IllegalStateException exception = new IllegalStateException(message);
FileLog.MAIN.log(exception);
throw exception;
}
static void assertTrue(boolean b) {
if (!b)
fail("Not true");