Skip to content

Commit 5d3aa61

Browse files
larger NUM_TICKS just in case
1 parent 344618d commit 5d3aa61

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Tests/Time/scheduler_test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ TEST_F(SchedulerTests, MultipleTasks) {
196196

197197
Scheduler::start();
198198
TIM2_BASE->PSC = 2; // quicker test
199-
constexpr int NUM_TICKS = 30;
199+
constexpr int NUM_TICKS = 300;
200200
for(int i = 0; i < NUM_TICKS; i++) {
201201
for(int j = 0; j <= TIM2_BASE->PSC; j++) TIM2_BASE->inc_cnt_and_check(1);
202202
Scheduler::update();
@@ -207,7 +207,6 @@ TEST_F(SchedulerTests, MultipleTasks) {
207207
#undef X
208208
}
209209

210-
211210
TEST_F(SchedulerTests, SameTaskMultipleTimes) {
212211
#define X(n) uint8_t taskid_##n = Scheduler::register_task(n, &multiple_task_1); \
213212
(void)taskid_##n;
@@ -216,7 +215,7 @@ TEST_F(SchedulerTests, SameTaskMultipleTimes) {
216215

217216
Scheduler::start();
218217
TIM2_BASE->PSC = 2; // quicker test
219-
constexpr int NUM_TICKS = 30;
218+
constexpr int NUM_TICKS = 300;
220219
for(int i = 0; i < NUM_TICKS; i++) {
221220
for(int j = 0; j <= TIM2_BASE->PSC; j++) TIM2_BASE->inc_cnt_and_check(1);
222221
Scheduler::update();

0 commit comments

Comments
 (0)