Skip to content

Commit

Permalink
Refs #20165. Fixes on mac
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware committed Sep 12, 2024
1 parent ed5f6a3 commit f5fcbc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/dds/xtypes/TypeLookupServicePublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 2 additions & 0 deletions test/dds/xtypes/TypeLookupServiceSubscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit f5fcbc5

Please sign in to comment.