diff --git a/test/blackbox/common/DDSBlackboxTestsListeners.cpp b/test/blackbox/common/DDSBlackboxTestsListeners.cpp index 8ac638d0809..f3c3b7f4500 100644 --- a/test/blackbox/common/DDSBlackboxTestsListeners.cpp +++ b/test/blackbox/common/DDSBlackboxTestsListeners.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "BlackboxTests.hpp" @@ -777,7 +778,13 @@ void sample_lost_test_dr_init( PubSubReader& reader, std::function functor) { - reader.sample_lost_status_functor(functor) + auto udp_transport = std::make_shared(); + udp_transport->sendBufferSize = SAMPLE_LOST_TEST_BUFFER_SIZE; + udp_transport->receiveBufferSize = SAMPLE_LOST_TEST_BUFFER_SIZE; + + reader.disable_builtin_transport() + .add_user_transport_to_pparams(udp_transport) + .sample_lost_status_functor(functor) .init(); ASSERT_TRUE(reader.isInitialized());