Skip to content

Commit

Permalink
Refs #5479. Adding more info to persistence tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelCompany committed Jun 14, 2019
1 parent 88460c5 commit 613b9a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/blackbox/BlackboxTestsPersistence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class BlackBoxPersistence : public ::testing::Test
}
}

std::cout << "Last received sequence was " << reader.get_last_received_sequence_number() << std::endl;

std::cout << "Destroying reader..." << std::endl;
reader.destroy();
std::cout << "Destroying writer..." << std::endl;
Expand Down
6 changes: 5 additions & 1 deletion test/blackbox/RTPSWithRegistrationReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ class RTPSWithRegistrationReader
});
}

eprosima::fastrtps::rtps::SequenceNumber_t get_last_received_sequence_number() const
{
return last_seq_;
}

void wait_discovery()
{
Expand Down Expand Up @@ -304,7 +308,7 @@ class RTPSWithRegistrationReader

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

return durability(eprosima::fastrtps::rtps::DurabilityKind_t::PERSISTENT)
return durability(eprosima::fastrtps::rtps::DurabilityKind_t::TRANSIENT)
.add_property("dds.persistence.plugin", "builtin.SQLITE3")
.add_property("dds.persistence.sqlite3.filename", filename);
}
Expand Down

0 comments on commit 613b9a3

Please sign in to comment.