Problem: inadequate recv variant used which assumes 0-terminated string

Solution: use array recv variant instead
This commit is contained in:
Simon Giesecke 2019-04-02 18:38:10 +02:00
parent a5ee4fb001
commit d328f90bb7

View File

@ -138,8 +138,8 @@ int test_blocking (int send_hwm_, int msg_cnt_, const char *endpoint)
// Wait before starting TX operations till 1 subscriber has subscribed
// (in this test there's 1 subscriber only)
const char subscription_to_all_topics[] = {1, 0};
recv_string_expect_success (pub_socket, subscription_to_all_topics, 0);
const uint8_t subscription_to_all_topics[] = {1};
recv_array_expect_success (pub_socket, subscription_to_all_topics, 0);
// Send until we block
int send_count = 0;