Skip to content

Commit

Permalink
Refs 12051. Correct unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
  • Loading branch information
IkerLuengo committed Jul 26, 2021
1 parent 3b03ad0 commit edcdc70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unittest/dds/publisher/DataWriterTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down Expand Up @@ -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;


Expand Down

0 comments on commit edcdc70

Please sign in to comment.