Skip to content

Commit

Permalink
reduced size of big message
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Apr 11, 2024
1 parent 0e20472 commit 2e3c776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ecaludp_test/src/ecaludp_socket_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ TEST(EcalUdpSocket, SyncBigMessage)
ecaludp::Socket rcv_socket (io_context, {'E', 'C', 'A', 'L'});

// Create the message to send and fill it with random characters
std::string message_to_send(1024 * 1024, 'a');
std::string message_to_send(1024 * 256, 'a'); // TODO: I had to set this to 256 KiB instead of 1MiB to work on Linux. Maybe the default UDP buffers in Linux are smaller?
std::generate(message_to_send.begin(), message_to_send.end(), []() { return static_cast<char>(std::rand()); });

// Create a thread that will receive a message
Expand Down

0 comments on commit 2e3c776

Please sign in to comment.