From 5ca0101985fe7dd4e1a959817601bff9d9d2ec82 Mon Sep 17 00:00:00 2001 From: elianalf <62831776+elianalf@users.noreply.github.com> Date: Mon, 17 Jun 2024 14:49:25 +0200 Subject: [PATCH] Refs #21129: Add missing code lost in the rebase Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> --- test/blackbox/common/RTPSAsSocketReader.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/blackbox/common/RTPSAsSocketReader.hpp b/test/blackbox/common/RTPSAsSocketReader.hpp index 72f573a5841..11f2f2d4994 100644 --- a/test/blackbox/common/RTPSAsSocketReader.hpp +++ b/test/blackbox/common/RTPSAsSocketReader.hpp @@ -156,10 +156,12 @@ class RTPSAsSocketReader attr.accept_messages_from_unkown_writers = eprosima::fastdds::rtps::RELIABLE != reader_attr_.endpoint.reliabilityKind; reader_ = eprosima::fastdds::rtps::RTPSDomain::createRTPSReader(participant_, attr, history_, - &listener_); ASSERT_NE(reader_, nullptr); + register_writer(); + + initialized_ = true; } bool isInitialized() const