Skip to content

Commit

Permalink
add delay to test
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Dec 12, 2024
1 parent bf3cdc8 commit 3a76dce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/z_int_advanced_pub_sub_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3a76dce

Please sign in to comment.