From 3a76dce4f1893e61e7fea12c21c2d4403258a836 Mon Sep 17 00:00:00 2001 From: Denis Biryukov Date: Thu, 12 Dec 2024 16:04:28 +0100 Subject: [PATCH] add delay to test --- tests/z_int_advanced_pub_sub_test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/z_int_advanced_pub_sub_test.c b/tests/z_int_advanced_pub_sub_test.c index 4b2787396..bbafea630 100644 --- a/tests/z_int_advanced_pub_sub_test.c +++ b/tests/z_int_advanced_pub_sub_test.c @@ -73,11 +73,12 @@ int run_publisher() { SEM_POST(sem_pub); printf("wait: sem_sub\n"); SEM_WAIT(sem_sub); + z_sleep_s(1); // values for subscribe - for (int i = 0; i < values_count / 2; ++i) { + for (int i = values_count / 2; i < values_count; ++i) { z_owned_bytes_t payload; - z_bytes_from_static_str(&payload, values[values_count / 2 + i]); + z_bytes_from_static_str(&payload, values[i]); ze_advanced_publisher_put(z_loan(pub), z_move(payload), NULL); }