@@ -81,10 +81,10 @@ void test_single_call(void)
81
81
int32_t sem_slots = sem.wait (0 );
82
82
TEST_ASSERT_EQUAL (0 , sem_slots);
83
83
84
- sem_slots = sem.wait (TEST_DELAY_MS + 1 );
84
+ sem_slots = sem.wait (TEST_DELAY_MS + 2 );
85
85
TEST_ASSERT_EQUAL (1 , sem_slots);
86
86
87
- sem_slots = sem.wait (TEST_DELAY_MS + 1 );
87
+ sem_slots = sem.wait (TEST_DELAY_MS + 2 );
88
88
TEST_ASSERT_EQUAL (0 , sem_slots);
89
89
90
90
timeout.detach ();
@@ -114,7 +114,7 @@ void test_cancel(void)
114
114
TEST_ASSERT_EQUAL (0 , sem_slots);
115
115
timeout.detach ();
116
116
117
- sem_slots = sem.wait (TEST_DELAY_MS + 1 );
117
+ sem_slots = sem.wait (TEST_DELAY_MS + 2 );
118
118
TEST_ASSERT_EQUAL (0 , sem_slots);
119
119
}
120
120
@@ -147,7 +147,7 @@ void test_override(void)
147
147
TEST_ASSERT_EQUAL (0 , sem_slots);
148
148
timeout.attach_callback (mbed::callback (sem_callback, &sem2), 2 .0f * TEST_DELAY_US);
149
149
150
- sem_slots = sem2.wait (2 * TEST_DELAY_MS + 1 );
150
+ sem_slots = sem2.wait (2 * TEST_DELAY_MS + 2 );
151
151
TEST_ASSERT_EQUAL (1 , sem_slots);
152
152
sem_slots = sem1.wait (0 );
153
153
TEST_ASSERT_EQUAL (0 , sem_slots);
@@ -177,7 +177,7 @@ void test_multiple(void)
177
177
for (size_t i = 0 ; i < NUM_TIMEOUTS; i++) {
178
178
timeouts[i].attach_callback (mbed::callback (cnt_callback, &callback_count), TEST_DELAY_US);
179
179
}
180
- Thread::wait (TEST_DELAY_MS + 1 );
180
+ Thread::wait (TEST_DELAY_MS + 2 );
181
181
TEST_ASSERT_EQUAL (NUM_TIMEOUTS, callback_count);
182
182
}
183
183
0 commit comments