diff --git a/unit_tests/test_fasterEngineSpinningUp.cpp b/unit_tests/test_fasterEngineSpinningUp.cpp index f5f5e52441..9acb7ef349 100644 --- a/unit_tests/test_fasterEngineSpinningUp.cpp +++ b/unit_tests/test_fasterEngineSpinningUp.cpp @@ -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()); diff --git a/unit_tests/test_startOfCrankingPrimingPulse.cpp b/unit_tests/test_startOfCrankingPrimingPulse.cpp index 186acb24b1..2bf17647c0 100644 --- a/unit_tests/test_startOfCrankingPrimingPulse.cpp +++ b/unit_tests/test_startOfCrankingPrimingPulse.cpp @@ -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)); diff --git a/unit_tests/test_trigger_decoder.cpp b/unit_tests/test_trigger_decoder.cpp index fea316d08f..d934bbd652 100644 --- a/unit_tests/test_trigger_decoder.cpp +++ b/unit_tests/test_trigger_decoder.cpp @@ -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();