TS Burned All Data engine stop #2839
it was a bad API but I did not improve it
This commit is contained in:
parent
c13bb8dbe1
commit
902be1afe7
|
@ -43,8 +43,10 @@ public class PwmHardwareTest extends RusefiTestBase {
|
||||||
nextChart();
|
nextChart();
|
||||||
int triggerErrors = (int) SensorCentral.getInstance().getValueSource(Sensor.totalTriggerErrorCounter).getValue();
|
int triggerErrors = (int) SensorCentral.getInstance().getValueSource(Sensor.totalTriggerErrorCounter).getValue();
|
||||||
log.info("triggerErrors " + triggerErrors);
|
log.info("triggerErrors " + triggerErrors);
|
||||||
for (int i = 0; i < 7; i++)
|
for (int i = 0; i < 7; i++) {
|
||||||
ecu.sendCommand(CMD_BURNCONFIG);
|
ecu.sendCommand(CMD_BURNCONFIG);
|
||||||
|
sleep(500);
|
||||||
|
}
|
||||||
int totalTriggerErrorsNow = (int) SensorCentral.getInstance().getValueSource(Sensor.totalTriggerErrorCounter).getValue();
|
int totalTriggerErrorsNow = (int) SensorCentral.getInstance().getValueSource(Sensor.totalTriggerErrorCounter).getValue();
|
||||||
log.info("totalTriggerErrorsNow " + totalTriggerErrorsNow);
|
log.info("totalTriggerErrorsNow " + totalTriggerErrorsNow);
|
||||||
|
|
||||||
|
|
|
@ -66,8 +66,9 @@ public class EcuTestHelper {
|
||||||
EcuTestHelper.assertEquals("", expected, actual);
|
EcuTestHelper.assertEquals("", expected, actual);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void assertTotallyEquals(String msg, double expected, double actual) {
|
public static void assertTotallyEquals(String msg, int expected, int actual) {
|
||||||
assertEquals(msg, expected, actual, 0);
|
if (expected != actual)
|
||||||
|
throw new IllegalStateException(msg + " Expected " + expected + " but got " + actual);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue