only: minor cleanup

This commit is contained in:
Matthew Kennedy 2024-04-26 15:49:37 -04:00 committed by rusEFI LLC
parent 083c519f1e
commit 32172801cc
1 changed files with 3 additions and 3 deletions

View File

@ -23,11 +23,11 @@ static void assertNextEvent(const char *msg, int expectedPinState, TestExecutor
timeNowUs = expectedTimeOfNextEvent;
// execute pending actions and assert that only one action was executed
ASSERT_NEAR(1, executor->executeAll(timeNowUs), 0) << msg << " executed";
ASSERT_NEAR(expectedPinState, pin.currentLogicValue, 0) << msg << " pin state";
ASSERT_EQ(1, executor->executeAll(timeNowUs)) << msg << " executed";
ASSERT_EQ(expectedPinState, pin.currentLogicValue) << msg << " pin state";
// assert that we have one new action in queue
ASSERT_EQ( 1, executor->size()) << "PWM_test: queue.size";
ASSERT_EQ(1, executor->size()) << "PWM_test: queue.size";
}
static void test100dutyCycle() {