Skip to content

Commit

Permalink
Refs 13326: Fix Fast RTPS tests
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz committed Dec 23, 2021
1 parent 2507b7b commit 2f0a2e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ void ReqRepHelloWorldReplier::init()

//Create subscriber
sattr.topic.topicKind = NO_KEY;
sattr.topic.topicDataType = "HelloWorldType";
sattr.topic.topicDataType = type_.getName();
configSubscriber("Request");
request_subscriber_ = Domain::createSubscriber(participant_, sattr, &request_listener_);
ASSERT_NE(request_subscriber_, nullptr);

//Create publisher
puattr.topic.topicKind = NO_KEY;
puattr.topic.topicDataType = "HelloWorldType";
puattr.topic.topicDataType = type_.getName();
puattr.topic.topicName = "HelloWorldTopicReply";
configPublisher("Reply");
reply_publisher_ = Domain::createPublisher(participant_, puattr, &reply_listener_);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ void ReqRepHelloWorldRequester::init()

//Create subscriber
sattr.topic.topicKind = NO_KEY;
sattr.topic.topicDataType = "HelloWorldType";
sattr.topic.topicDataType = type_.getName();
configSubscriber("Reply");
reply_subscriber_ = Domain::createSubscriber(participant_, sattr, &reply_listener_);
ASSERT_NE(reply_subscriber_, nullptr);

//Create publisher
puattr.topic.topicKind = NO_KEY;
puattr.topic.topicDataType = "HelloWorldType";
puattr.topic.topicDataType = type_.getName();
configPublisher("Request");
request_publisher_ = Domain::createPublisher(participant_, puattr, &request_listener_);
ASSERT_NE(request_publisher_, nullptr);
Expand All @@ -97,14 +97,14 @@ void ReqRepHelloWorldRequester::init_with_latency(

//Create subscriber
sattr.topic.topicKind = NO_KEY;
sattr.topic.topicDataType = "HelloWorldType";
sattr.topic.topicDataType = type_.getName();
sattr.qos.m_latencyBudget.duration = latency_budget_duration_sub;
reply_subscriber_ = Domain::createSubscriber(participant_, sattr, &reply_listener_);
ASSERT_NE(reply_subscriber_, nullptr);

//Create publisher
puattr.topic.topicKind = NO_KEY;
puattr.topic.topicDataType = "HelloWorldType";
puattr.topic.topicDataType = type_.getName();
puattr.qos.m_latencyBudget.duration = latency_budget_duration_pub;
request_publisher_ = Domain::createPublisher(participant_, puattr, &request_listener_);
ASSERT_NE(request_publisher_, nullptr);
Expand Down
2 changes: 1 addition & 1 deletion test/blackbox/common/BlackboxTestsDiscovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ TEST(Discovery, PubXmlLoadedPartition)
<topic>
<name>)" + writer.topic_name() +
R"(</name>
<dataType>HelloWorldPubSubType</dataType>
<dataType>HelloWorld</dataType>
</topic>
<qos>
<partition>
Expand Down

0 comments on commit 2f0a2e7

Please sign in to comment.