Skip to content

Commit c92b561

Browse files
authored
Fix CreateTopicWithDifferentTypeName_negative flaky test (#5307)
Signed-off-by: Ricardo González Moreno <[email protected]>
1 parent 59590c0 commit c92b561

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unittest/dds/participant/ParticipantTests.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -2282,6 +2282,7 @@ TEST(ParticipantTests, CreateTopicWithDifferentTypeName_negative)
22822282
// Topic using the default profile
22832283
Topic* topic = participant->create_topic("footopic", type_name, TOPIC_QOS_DEFAULT);
22842284
ASSERT_EQ(topic, nullptr);
2285+
ASSERT_TRUE(DomainParticipantFactory::get_instance()->delete_participant(participant) == RETCODE_OK);
22852286
}
22862287

22872288
// Using type support type name when registered with other name
@@ -2296,6 +2297,7 @@ TEST(ParticipantTests, CreateTopicWithDifferentTypeName_negative)
22962297
// Topic using the default profile
22972298
Topic* topic = participant->create_topic("footopic", type.get_type_name(), TOPIC_QOS_DEFAULT);
22982299
ASSERT_EQ(topic, nullptr);
2300+
ASSERT_TRUE(DomainParticipantFactory::get_instance()->delete_participant(participant) == RETCODE_OK);
22992301
}
23002302
}
23012303

0 commit comments

Comments
 (0)