refactoring
This commit is contained in:
parent
cf1d5e2f3e
commit
5f4dc1c206
|
@ -89,7 +89,7 @@ void testFasterEngineSpinningUp() {
|
|||
|
||||
eth.clearQueue();
|
||||
timeStartUs = timeNowUs;
|
||||
eth.fireTriggerEvents2(1, 60);
|
||||
eth.fireTriggerEventsWithDuration(60);
|
||||
|
||||
// check if the mode is now changed to 'running' at higher RPM
|
||||
assertEquals(RUNNING, engine->rpmCalculator.getState());
|
||||
|
|
|
@ -24,7 +24,7 @@ void testPlainCrankingWithoutAdvancedFeatures() {
|
|||
setupSimpleTestEngineWithMafAndTT_ONE_trigger(ð);
|
||||
assertEqualsM("RPM=0", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||
|
||||
eth.fireTriggerEvents2(1, 200);
|
||||
eth.fireTriggerEventsWithDuration(200);
|
||||
// still no RPM since need to cycles measure cycle duration
|
||||
assertEqualsM("RPM#1", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||
|
||||
|
|
|
@ -666,10 +666,10 @@ static void setTestBug299(EngineTestHelper *eth) {
|
|||
assertRpm("RPM=0", 0 PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
assertEqualsM("setTestBug299 EL", 0, getEngineLoadT(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||
assertEqualsM("setTestBug299 IAT", 30, engine->sensors.iat);
|
||||
eth->fireTriggerEvents2(1, 20);
|
||||
eth->fireTriggerEventsWithDuration(20);
|
||||
// still no RPM since need to cycles measure cycle duration
|
||||
assertRpm("setTestBug299: RPM#1", 0 PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
eth->fireTriggerEvents2(1, 20);
|
||||
eth->fireTriggerEventsWithDuration(20);
|
||||
assertRpm("setTestBug299: RPM#2", 3000 PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
|
||||
eth->clearQueue();
|
||||
|
|
Loading…
Reference in New Issue