Skip to content

Commit

Permalink
Fix CreateTopicWithDifferentTypeName_negative flaky test (#5307)
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware authored Oct 7, 2024
1 parent 59590c0 commit c92b561
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unittest/dds/participant/ParticipantTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2282,6 +2282,7 @@ TEST(ParticipantTests, CreateTopicWithDifferentTypeName_negative)
// Topic using the default profile
Topic* topic = participant->create_topic("footopic", type_name, TOPIC_QOS_DEFAULT);
ASSERT_EQ(topic, nullptr);
ASSERT_TRUE(DomainParticipantFactory::get_instance()->delete_participant(participant) == RETCODE_OK);
}

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

Expand Down

0 comments on commit c92b561

Please sign in to comment.