mirror of https://github.com/FOME-Tech/fome-fw.git
parent
07f0360dd9
commit
8cb484f3e0
|
@ -319,6 +319,11 @@ TEST(InjectorModel, MissingPressureSensor) {
|
||||||
// Sensor is missing!
|
// Sensor is missing!
|
||||||
Sensor::resetMockValue(SensorType::FuelPressureInjector);
|
Sensor::resetMockValue(SensorType::FuelPressureInjector);
|
||||||
|
|
||||||
// Missing sensor should trigger a fatal as it's a misconfiguration
|
// no warning before
|
||||||
EXPECT_FATAL_ERROR(dut.getInjectorFlowRatio());
|
ASSERT_EQ(0, eth.recentWarnings()->getCount());
|
||||||
|
|
||||||
|
// Missing sensor should return 1.0 flow ratio and log a warning
|
||||||
|
EXPECT_EQ(1.0f, dut.getInjectorFlowRatio());
|
||||||
|
|
||||||
|
EXPECT_EQ(1, eth.recentWarnings()->getCount());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue