diff --git a/java_console/autotest/src/com/rusefi/f4discovery/PwmHardwareTest.java b/java_console/autotest/src/com/rusefi/f4discovery/PwmHardwareTest.java index 4b5e3d14ba..f284d1fac2 100644 --- a/java_console/autotest/src/com/rusefi/f4discovery/PwmHardwareTest.java +++ b/java_console/autotest/src/com/rusefi/f4discovery/PwmHardwareTest.java @@ -43,8 +43,10 @@ public class PwmHardwareTest extends RusefiTestBase { nextChart(); int triggerErrors = (int) SensorCentral.getInstance().getValueSource(Sensor.totalTriggerErrorCounter).getValue(); log.info("triggerErrors " + triggerErrors); - for (int i = 0; i < 7; i++) + for (int i = 0; i < 7; i++) { ecu.sendCommand(CMD_BURNCONFIG); + sleep(500); + } int totalTriggerErrorsNow = (int) SensorCentral.getInstance().getValueSource(Sensor.totalTriggerErrorCounter).getValue(); log.info("totalTriggerErrorsNow " + totalTriggerErrorsNow); diff --git a/java_console/autotest/src/com/rusefi/functional_tests/EcuTestHelper.java b/java_console/autotest/src/com/rusefi/functional_tests/EcuTestHelper.java index d789fda6df..2c3041afec 100644 --- a/java_console/autotest/src/com/rusefi/functional_tests/EcuTestHelper.java +++ b/java_console/autotest/src/com/rusefi/functional_tests/EcuTestHelper.java @@ -66,8 +66,9 @@ public class EcuTestHelper { EcuTestHelper.assertEquals("", expected, actual); } - public static void assertTotallyEquals(String msg, double expected, double actual) { - assertEquals(msg, expected, actual, 0); + public static void assertTotallyEquals(String msg, int expected, int actual) { + if (expected != actual) + throw new IllegalStateException(msg + " Expected " + expected + " but got " + actual); } /**