refactoring

This commit is contained in:
rusEfi 2018-07-28 19:37:10 -04:00
parent abcbae519b
commit 78a4c284d2
3 changed files with 4 additions and 4 deletions

View File

@ -89,7 +89,7 @@ void testFasterEngineSpinningUp() {
eth.clearQueue(); eth.clearQueue();
timeStartUs = timeNowUs; timeStartUs = timeNowUs;
eth.fireTriggerEvents2(1, 60); eth.fireTriggerEventsWithDuration(60);
// check if the mode is now changed to 'running' at higher RPM // check if the mode is now changed to 'running' at higher RPM
assertEquals(RUNNING, engine->rpmCalculator.getState()); assertEquals(RUNNING, engine->rpmCalculator.getState());

View File

@ -24,7 +24,7 @@ void testPlainCrankingWithoutAdvancedFeatures() {
setupSimpleTestEngineWithMafAndTT_ONE_trigger(&eth); setupSimpleTestEngineWithMafAndTT_ONE_trigger(&eth);
assertEqualsM("RPM=0", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE)); 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 // still no RPM since need to cycles measure cycle duration
assertEqualsM("RPM#1", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE)); assertEqualsM("RPM#1", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));

View File

@ -666,10 +666,10 @@ static void setTestBug299(EngineTestHelper *eth) {
assertRpm("RPM=0", 0 PASS_ENGINE_PARAMETER_SUFFIX); assertRpm("RPM=0", 0 PASS_ENGINE_PARAMETER_SUFFIX);
assertEqualsM("setTestBug299 EL", 0, getEngineLoadT(PASS_ENGINE_PARAMETER_SIGNATURE)); assertEqualsM("setTestBug299 EL", 0, getEngineLoadT(PASS_ENGINE_PARAMETER_SIGNATURE));
assertEqualsM("setTestBug299 IAT", 30, engine->sensors.iat); assertEqualsM("setTestBug299 IAT", 30, engine->sensors.iat);
eth->fireTriggerEvents2(1, 20); eth->fireTriggerEventsWithDuration(20);
// still no RPM since need to cycles measure cycle duration // still no RPM since need to cycles measure cycle duration
assertRpm("setTestBug299: RPM#1", 0 PASS_ENGINE_PARAMETER_SUFFIX); 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); assertRpm("setTestBug299: RPM#2", 3000 PASS_ENGINE_PARAMETER_SUFFIX);
eth->clearQueue(); eth->clearQueue();