diff --git a/unit_tests/tests/trigger/test_real_nissan_hr.cpp b/unit_tests/tests/trigger/test_real_nissan_hr.cpp index 8c0ac1a297..9e26c80aa4 100644 --- a/unit_tests/tests/trigger/test_real_nissan_hr.cpp +++ b/unit_tests/tests/trigger/test_real_nissan_hr.cpp @@ -18,8 +18,8 @@ TEST(nissan, realFromFile) { } ASSERT_EQ( 1, eth.recentWarnings()->getCount())<< "warningCounter#nissanRealCranking"; + ASSERT_EQ(1, engine->triggerCentral.triggerState.totalTriggerErrorCounter); ASSERT_EQ(179, round(Sensor::getOrZero(SensorType::Rpm)))<< reader.lineIndex(); - } TEST(nissan, realNoSparkPlugsFromFile) { @@ -37,12 +37,12 @@ TEST(nissan, realNoSparkPlugsFromFile) { reader.processLine(ð); } + ASSERT_EQ( 1, eth.recentWarnings()->getCount())<< "warningCounter#nissanRealCranking"; + ASSERT_EQ(1, engine->triggerCentral.triggerState.totalTriggerErrorCounter); ASSERT_EQ(215, round(Sensor::getOrZero(SensorType::Rpm)))<< reader.lineIndex(); - } - TEST(nissan, realFromFile4seconds) { CsvReader reader(1, /* vvtCount */ 0); @@ -60,5 +60,6 @@ TEST(nissan, realFromFile4seconds) { } ASSERT_EQ( 1, eth.recentWarnings()->getCount())<< "warningCounter#nissanRealCranking"; + ASSERT_EQ(8, engine->triggerCentral.triggerState.totalTriggerErrorCounter); ASSERT_EQ(179, round(Sensor::getOrZero(SensorType::Rpm)))<< reader.lineIndex(); }