tests refactoring
This commit is contained in:
parent
f81c1a046e
commit
255f85e707
|
@ -54,10 +54,6 @@ void testStartOfCrankingPrimingPulse() {
|
|||
// we need below freezing temperature to get prime fuel
|
||||
// todo: less cruel CLT value assignment which would survive 'updateSlowSensors'
|
||||
engine->sensors.clt = -10;
|
||||
// this is needed to update injectorLag
|
||||
// engine->updateSlowSensors(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
// assertEqualsM("CLT#2", -10, engine->sensors.clt);
|
||||
|
||||
|
||||
// prod code invokes this on ECU start, here we have to mimic this behavior
|
||||
startPrimeInjectionPulse(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
|
|
@ -163,9 +163,6 @@ void test1995FordInline6TriggerDecoder(void) {
|
|||
|
||||
assertEqualsM("triggerShapeSynchPointIndex", 0, shape->getTriggerShapeSynchPointIndex());
|
||||
|
||||
// this is needed to have valid CLT and IAT. todo: extract method
|
||||
engine->updateSlowSensors(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
||||
event_trigger_position_s position;
|
||||
assertEqualsM("globalTriggerAngleOffset", 0, engineConfiguration->globalTriggerAngleOffset);
|
||||
TRIGGER_SHAPE(findTriggerPosition(&position, 0, engineConfiguration->globalTriggerAngleOffset));
|
||||
|
|
|
@ -184,7 +184,6 @@ void testNoiselessDecoder(void) {
|
|||
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL_60_2;
|
||||
incrementGlobalConfigurationVersion(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
eth.applyTriggerShape();
|
||||
engine->updateSlowSensors(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
||||
assertEquals(0, engine->triggerCentral.triggerState.totalTriggerErrorCounter);
|
||||
assertEqualsM("testNoiselessDecoder RPM", 0, eth.engine.rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||
|
|
Loading…
Reference in New Issue