Skip to content

Commit 5b99642

Browse files
committed
Fix flickering test by reducing chance of scheduling overlap.
1 parent 0c5f509 commit 5b99642

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/taskMgrTests/taskManagerCoreTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ testF(TimingHelpFixture, scheduleManyJobsAtOnce) {
9595
testF(TimingHelpFixture, scheduleFixedRateTestCase) {
9696
assertEqual(taskManager.getFirstTask(), NULL);
9797

98-
auto taskId1 = taskManager.scheduleFixedRate(1, recordingJob, TIME_MILLIS);
98+
auto taskId1 = taskManager.scheduleFixedRate(10, recordingJob, TIME_MILLIS);
9999
auto taskId2 = taskManager.scheduleFixedRate(100, recordingJob2, TIME_MICROS);
100100

101101
// now check the task registration in detail.
@@ -125,7 +125,7 @@ testF(TimingHelpFixture, scheduleFixedRateTestCase) {
125125
assertMoreOrEqual(timeTaken, (uint32_t) 19);
126126

127127
// now make sure that we got in the right ball park of calls.
128-
assertMore(count, 15);
128+
assertMore(count, 2);
129129
assertMore(count2, 150);
130130
}
131131

0 commit comments

Comments
 (0)