Skip to content

Commit

Permalink
fix tests [5]
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Sep 14, 2024
1 parent bb29bfe commit 784bc7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core-tests/src/os/process_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ static void test_func_task_protocol(ProcessPool &pool) {
pool.set_protocol(SW_PROTOCOL_TASK);
pool.onTask = [](ProcessPool *pool, Worker *worker, EventData *task) -> int {
pool->running = false;
String *_data = (String *) pool->ptr;
usleep(10000);
EXPECT_MEMEQ(task->data, TEST_JPG_MD5SUM, task->info.len);
EXPECT_MEMEQ(_data->str, task->data, task->len());
return 0;
};
test_func(pool);
Expand Down

0 comments on commit 784bc7f

Please sign in to comment.