mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 10:05:19 +00:00
Fix WorkerThreadTest
Queue capacity needs to be NUM_TASKS + 1 for the extra final cv.notify at the end. Test: atest --host --rerun-until-failure 1000 WorkerThreadTest Bug: b/229801892 Change-Id: I95eb07680fe80cfc3bfafaa2de81c48d61d14b4b
This commit is contained in:
@@ -71,7 +71,7 @@ TEST(WorkerThreadTest, ScheduleReturnsFalseWhenQueueIsFull) {
|
||||
|
||||
TEST(WorkerThreadTest, TasksExecuteInOrder) {
|
||||
constexpr int NUM_TASKS = 10000;
|
||||
WorkerThread worker(NUM_TASKS);
|
||||
WorkerThread worker(NUM_TASKS + 1);
|
||||
|
||||
std::mutex mut;
|
||||
std::condition_variable cv;
|
||||
|
||||
Reference in New Issue
Block a user