mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-11-04 08:37:53 +00:00
fix(nrf52): recover idle secured BLE links
This commit is contained in:
1 parent
5c4394edd8
commit
7de7fcf675
5 files changed
+211
-27
No files matched your search
@@ -26,6 +26,15 @@ TEST(SecuritySessionTimer, RestartUsesTheLatestConnection) {
|
||||
EXPECT_TRUE(timer.expired(1200, 200));
|
||||
}
|
||||
|
||||
TEST(SecuritySessionTimer, SecuredButIdleCompanionLinkExpiresAtFifteenSeconds) {
|
||||
SecuritySessionTimer timer;
|
||||
timer.start(4000);
|
||||
EXPECT_FALSE(timer.expired(18999, 15000));
|
||||
EXPECT_TRUE(timer.expired(19000, 15000));
|
||||
timer.cancel(); // First Companion data arrived.
|
||||
EXPECT_FALSE(timer.expired(100000, 15000));
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
|
||||
Reference in new issue
Block a user