Skip to content

Commit e6a5d4f

Browse files
committed
make test more reliable
1 parent 0a481ef commit e6a5d4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/taskMgrTests/taskManagerCoreTests.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,17 @@ testF(TimingHelpFixture, scheduleFixedRateTestCase) {
139139
dumpTasks();
140140

141141
uint32_t timeStartYield = millis();
142-
taskManager.yieldForMicros(20000);
142+
taskManager.yieldForMicros(secondsToMillis(22));
143143
uint32_t timeTaken = millis() - timeStartYield;
144144

145145
dumpTasks();
146146

147147
// make sure the yield timings were in range.
148-
assertLess(timeTaken, (uint32_t) 22);
149-
assertMoreOrEqual(timeTaken, (uint32_t) 19);
148+
assertLess(timeTaken, (uint32_t) 25);
149+
assertMoreOrEqual(timeTaken, (uint32_t) 20);
150150

151151
// now make sure that we got in the right ball park of calls.
152-
assertMore(count, 2);
152+
assertMore(count, 1);
153153
assertMore(count2, 150);
154154
}
155155

0 commit comments

Comments
 (0)