tests: fix -Wparentheses in Github CI

warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses]
pull/339/head
gudnimg 2024-12-23 15:00:54 +00:00
parent ca1d09ad15
commit ded3713500
1 changed files with 2 additions and 2 deletions

View File

@ -181,10 +181,10 @@ void SimulateErrDisengagingIdler(logic::CommandBase &cb, ErrorCode deferredEC) {
REQUIRE(WhileCondition( REQUIRE(WhileCondition(
cb, [&](uint32_t) { cb, [&](uint32_t) {
if (cb.TopLevelState() == ProgressCode::ERRDisengagingIdler) { if (cb.TopLevelState() == ProgressCode::ERRDisengagingIdler) {
REQUIRE(cb.Error() == ErrorCode::RUNNING); // ensure the error gets never set while disengaging the idler REQUIRE((cb.Error() == ErrorCode::RUNNING)); // ensure the error gets never set while disengaging the idler
return true; return true;
} else { } else {
REQUIRE(cb.Error() == deferredEC); REQUIRE((cb.Error() == deferredEC));
return false; return false;
} }
}, },