TS Burned All Data engine stop #2839

it was a bad API but I did not improve it
This commit is contained in:
rusefillc 2021-06-21 02:23:29 -04:00
parent c13bb8dbe1
commit 902be1afe7
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}
/**