From 902be1afe7aef08865f93400f13c62d94b87f8c1 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 21 Jun 2021 02:23:29 -0400 Subject: [PATCH] TS Burned All Data engine stop #2839 it was a bad API but I did not improve it --- .../autotest/src/com/rusefi/f4discovery/PwmHardwareTest.java | 4 +++- .../src/com/rusefi/functional_tests/EcuTestHelper.java | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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); } /**