diff --git a/test/dds/xtypes/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp index d4442583689..f6649d8dc1e 100644 --- a/test/dds/xtypes/TypeLookupServicePublisher.cpp +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -99,6 +99,8 @@ bool TypeLookupServicePublisher::setup_publisher( // CREATE THE DATAWRITER DataWriterQos wqos = publisher->get_default_datawriter_qos(); wqos.data_sharing().off(); + wqos.reliability().kind = RELIABLE_RELIABILITY_QOS; + wqos.durability().kind = TRANSIENT_LOCAL_DURABILITY_QOS; a_type.writer_ = publisher->create_datawriter(topic, wqos); if (a_type.writer_ == nullptr) { diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp index dd8fb14d244..83e6b8b6540 100644 --- a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -105,6 +105,8 @@ bool TypeLookupServiceSubscriber::setup_subscriber( //CREATE THE DATAREADER DataReaderQos rqos = subscriber->get_default_datareader_qos(); rqos.data_sharing().off(); + rqos.reliability().kind = RELIABLE_RELIABILITY_QOS; + rqos.durability().kind = TRANSIENT_LOCAL_DURABILITY_QOS; DataReader* reader = subscriber->create_datareader(topic, rqos); if (reader == nullptr) {