Skip to content

Commit

Permalink
Use correct API in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
  • Loading branch information
rsanchez15 committed Jan 16, 2024
1 parent 9fb4d80 commit e6e02cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/unittest/dds/publisher/DataWriterTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,9 @@ TEST(DataWriterTests, CustomPoolCreation)

DataWriterQos writer_qos = DATAWRITER_QOS_DEFAULT;

DataWriter* data_writer = publisher->create_datawriter(topic, writer_qos, payload_pool, nullptr, StatusMask::all());
DataWriter* data_writer =
publisher->create_datawriter_with_payload_pool(
topic, writer_qos, payload_pool, nullptr, StatusMask::all());

ASSERT_NE(data_writer, nullptr);
ASSERT_NE(data_reader, nullptr);
Expand Down
3 changes: 2 additions & 1 deletion test/unittest/dds/subscriber/DataReaderTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3522,7 +3522,8 @@ TEST_F(DataReaderTests, CustomPoolCreation)
std::shared_ptr<CustomPayloadPool> payload_pool = std::make_shared<CustomPayloadPool>();

DataReader* data_reader =
subscriber->create_datareader(topic, reader_qos, payload_pool, nullptr, StatusMask::all());
subscriber->create_datareader_with_payload_pool(
topic, reader_qos, payload_pool, nullptr, StatusMask::all());

DataWriterQos writer_qos = DATAWRITER_QOS_DEFAULT;
writer_qos.reliability().kind = eprosima::fastdds::dds::BEST_EFFORT_RELIABILITY_QOS;
Expand Down

0 comments on commit e6e02cc

Please sign in to comment.