fw: fix best-route v2 strategy test case
refs #2126
Change-Id: I9badfb011385097f7f32c2a7ead3f25e5e8ee032
diff --git a/tests/daemon/fw/best-route-strategy2.cpp b/tests/daemon/fw/best-route-strategy2.cpp
index fece22e..1c69dfb 100644
--- a/tests/daemon/fw/best-route-strategy2.cpp
+++ b/tests/daemon/fw/best-route-strategy2.cpp
@@ -65,6 +65,8 @@
const time::nanoseconds RETRANSMISSION_10P = time::duration_cast<time::nanoseconds>(
fw::BestRouteStrategy2::MIN_RETRANSMISSION_INTERVAL * 0.1); // 10%
+ const time::nanoseconds RETRANSMISSION_70P = time::duration_cast<time::nanoseconds>(
+ fw::BestRouteStrategy2::MIN_RETRANSMISSION_INTERVAL * 0.7); // 70%
const time::nanoseconds RETRANSMISSION_2 = time::duration_cast<time::nanoseconds>(
fw::BestRouteStrategy2::MIN_RETRANSMISSION_INTERVAL * 2.0); // x2
@@ -88,8 +90,7 @@
if (nSent > nSentLast) {
BOOST_CHECK_EQUAL(nSent - nSentLast, 1);
time::steady_clock::TimePoint timeSent = time::steady_clock::now();
- BOOST_CHECK_GE(timeSent - timeSentLast,
- fw::BestRouteStrategy2::MIN_RETRANSMISSION_INTERVAL);
+ BOOST_CHECK_GE(timeSent - timeSentLast, RETRANSMISSION_70P);
nSentLast = nSent;
timeSentLast = timeSent;
}