Skip to content

Commit 784bc7f

Browse files
committed
fix tests [5]
1 parent bb29bfe commit 784bc7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core-tests/src/os/process_pool.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ static void test_func_task_protocol(ProcessPool &pool) {
3333
pool.set_protocol(SW_PROTOCOL_TASK);
3434
pool.onTask = [](ProcessPool *pool, Worker *worker, EventData *task) -> int {
3535
pool->running = false;
36+
String *_data = (String *) pool->ptr;
3637
usleep(10000);
37-
EXPECT_MEMEQ(task->data, TEST_JPG_MD5SUM, task->info.len);
38+
EXPECT_MEMEQ(_data->str, task->data, task->len());
3839
return 0;
3940
};
4041
test_func(pool);

0 commit comments

Comments
 (0)