From edcdc70f526dacf295a412f1b85085bfd89faf27 Mon Sep 17 00:00:00 2001 From: Iker Luengo Date: Mon, 26 Jul 2021 15:29:04 +0200 Subject: [PATCH] Refs 12051. Correct unit test Signed-off-by: Iker Luengo --- test/unittest/dds/publisher/DataWriterTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unittest/dds/publisher/DataWriterTests.cpp b/test/unittest/dds/publisher/DataWriterTests.cpp index 009b8c3d43f..9d321b6f4fa 100644 --- a/test/unittest/dds/publisher/DataWriterTests.cpp +++ b/test/unittest/dds/publisher/DataWriterTests.cpp @@ -256,7 +256,7 @@ TEST(DataWriterTests, ForcedDataSharing) // DataSharing enabled, unbounded topic data type qos = DATAWRITER_QOS_DEFAULT; qos.endpoint().history_memory_policy = fastrtps::rtps::PREALLOCATED_MEMORY_MODE; - qos.data_sharing().on("path"); + qos.data_sharing().on("."); datawriter = publisher->create_datawriter(topic, qos); ASSERT_EQ(datawriter, nullptr); @@ -267,7 +267,7 @@ TEST(DataWriterTests, ForcedDataSharing) // DataSharing enabled, bounded topic data type, Dynamic memory policy qos = DATAWRITER_QOS_DEFAULT; - qos.data_sharing().on("path"); + qos.data_sharing().on("."); qos.endpoint().history_memory_policy = fastrtps::rtps::DYNAMIC_RESERVE_MEMORY_MODE; datawriter = publisher->create_datawriter(bounded_topic, qos); ASSERT_EQ(datawriter, nullptr); @@ -317,7 +317,7 @@ TEST(DataWriterTests, ForcedDataSharing) ASSERT_NE(bounded_topic, nullptr); qos = DATAWRITER_QOS_DEFAULT; - qos.data_sharing().on("path"); + qos.data_sharing().on("."); qos.endpoint().history_memory_policy = fastrtps::rtps::PREALLOCATED_MEMORY_MODE;