Skip to content

Commit

Permalink
Refs 10533 use create_entities on the new 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 Feb 10, 2021
1 parent 4da5971 commit b8bd004
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions test/unittest/dds/subscriber/DataReaderTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1281,22 +1281,7 @@ TEST_F(DataReaderTests, read_unread)
TEST_F(DataReaderTests, TerminateWithoutDestroyingReader)
{
destroy_entities_ = false;

DomainParticipant* participant =
DomainParticipantFactory::get_instance()->create_participant(0, PARTICIPANT_QOS_DEFAULT);
ASSERT_NE(participant, nullptr);

Subscriber* subscriber = participant->create_subscriber(SUBSCRIBER_QOS_DEFAULT);
ASSERT_NE(participant, nullptr);

TypeSupport type(new FooTypeSupport());
type.register_type(participant);

Topic* topic = participant->create_topic("footopic", type.get_type_name(), TOPIC_QOS_DEFAULT);
ASSERT_NE(topic, nullptr);

DataReader* datareader = subscriber->create_datareader(topic, DATAREADER_QOS_DEFAULT);
ASSERT_NE(datareader, nullptr);
create_entities();
}

void set_listener_test (
Expand Down

0 comments on commit b8bd004

Please sign in to comment.