tests: fix -Wparentheses in Github CI
warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses]pull/339/head
parent
ca1d09ad15
commit
ded3713500
|
|
@ -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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue