Skip to content

Commit 613b9a3

Browse files
committed
Refs #5479. Adding more info to persistence tests.
1 parent 88460c5 commit 613b9a3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

test/blackbox/BlackboxTestsPersistence.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ class BlackBoxPersistence : public ::testing::Test
7676
}
7777
}
7878

79+
std::cout << "Last received sequence was " << reader.get_last_received_sequence_number() << std::endl;
80+
7981
std::cout << "Destroying reader..." << std::endl;
8082
reader.destroy();
8183
std::cout << "Destroying writer..." << std::endl;

test/blackbox/RTPSWithRegistrationReader.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ class RTPSWithRegistrationReader
223223
});
224224
}
225225

226+
eprosima::fastrtps::rtps::SequenceNumber_t get_last_received_sequence_number() const
227+
{
228+
return last_seq_;
229+
}
226230

227231
void wait_discovery()
228232
{
@@ -304,7 +308,7 @@ class RTPSWithRegistrationReader
304308

305309
std::cout << "Initializing persistent READER " << reader_attr_.endpoint.persistence_guid << " with file " << filename << std::endl;
306310

307-
return durability(eprosima::fastrtps::rtps::DurabilityKind_t::PERSISTENT)
311+
return durability(eprosima::fastrtps::rtps::DurabilityKind_t::TRANSIENT)
308312
.add_property("dds.persistence.plugin", "builtin.SQLITE3")
309313
.add_property("dds.persistence.sqlite3.filename", filename);
310314
}

0 commit comments

Comments
 (0)