Skip to content

Commit

Permalink
Improve test to use uneqal buffers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mellis13 committed Nov 1, 2024
1 parent 240b1e6 commit 2c327ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cpp/unit-tests/test_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ SCENARIO("Testing Bytes Functions on Client Object", "[Client]")
THEN("The bytes can be retrieved by clients.unpack_bytes()")
{
size_t retrieved_n_bytes = 0;
unsigned char* retrieved_bytes_values = (unsigned char*)malloc(n_bytes);
// Allocate more memory than needed to test unequal buffers
unsigned char* retrieved_bytes_values = (unsigned char*)malloc(n_bytes*2);

client.unpack_bytes(bytes_name,
retrieved_bytes_values,
Expand Down

0 comments on commit 2c327ae

Please sign in to comment.