From 2e3c77602ac0e7aad906ccff0e0873fa7c40f025 Mon Sep 17 00:00:00 2001 From: Florian Reimold <11774314+FlorianReimold@users.noreply.github.com> Date: Thu, 11 Apr 2024 18:53:03 +0200 Subject: [PATCH] reduced size of big message --- tests/ecaludp_test/src/ecaludp_socket_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ecaludp_test/src/ecaludp_socket_test.cpp b/tests/ecaludp_test/src/ecaludp_socket_test.cpp index a32249c..372ff43 100644 --- a/tests/ecaludp_test/src/ecaludp_socket_test.cpp +++ b/tests/ecaludp_test/src/ecaludp_socket_test.cpp @@ -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(std::rand()); }); // Create a thread that will receive a message