diff --git a/tests/JFJochStateMachineTest.cpp b/tests/JFJochStateMachineTest.cpp index dd5f9ea5a..3b140ceec 100644 --- a/tests/JFJochStateMachineTest.cpp +++ b/tests/JFJochStateMachineTest.cpp @@ -336,10 +336,11 @@ TEST_CASE("JFJochStateMachine_CalibrationFailure") { REQUIRE_NOTHROW(state_machine.Initialize()); REQUIRE_NOTHROW(state_machine.WaitTillMeasurementDone()); - // Inactive, not Idle and not Error: the calibration is undefined, so the detector has to be - // initialized again rather than looking ready to measure. + // Error, not Idle: the calibration is undefined, so the detector has to be initialized again + // rather than looking ready to measure. Error and not Inactive, so that the wait calls report + // the reason instead of the bodiless answer a deliberate power-off leaves behind. auto status = state_machine.GetStatus(); - REQUIRE(status.state == JFJochState::Inactive); + REQUIRE(status.state == JFJochState::Error); REQUIRE(status.message_severity == BrokerStatus::MessageSeverity::Error); REQUIRE(status.message == "Pedestal not collected properly");