Skip to content

Commit 629804a

Browse files
committed
Testing: thread safe unit test updates
1 parent b66b368 commit 629804a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-scheduler-thread-safe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ TEST_F(ThreadSafeTest, WorkerThreadChangesInterval) {
267267
int idx = 0;
268268

269269
while (worker_running && idx < 5) {
270-
std::this_thread::sleep_for(std::chrono::milliseconds(100));
270+
std::this_thread::sleep_for(std::chrono::milliseconds(intervals[idx]+5));
271271
ts.requestAction(&testTask, TASK_REQUEST_SETINTERVAL_1,
272272
intervals[idx], 0, 0, 0, 0);
273273
idx++;

0 commit comments

Comments
 (0)