From 93c860f8c7a8c7772723104f715b2e51d8b6ea3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Mon, 21 Jun 2021 23:37:08 +0000 Subject: net-test: resilient_rs_test.py - slightly bump EPSILON MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to deflake test when it hits errors like: self.assertLess(min_exp, t) AssertionError: 0.8 not less than 0.7886772155761719 which are happening just a little bit too often. Test: ran against ACK 5.4-S, TreeHugger Bug: 191826861 Signed-off-by: Maciej Żenczykowski Original-Change: https://android-review.googlesource.com/1742096 Merged-In: I9527b905660a07db39fca9944d129d0771be209f Change-Id: I9527b905660a07db39fca9944d129d0771be209f --- net/test/resilient_rs_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/test/resilient_rs_test.py b/net/test/resilient_rs_test.py index 27b9f49..be3210b 100755 --- a/net/test/resilient_rs_test.py +++ b/net/test/resilient_rs_test.py @@ -97,14 +97,14 @@ class ResilientRouterSolicitationTest(multinetwork_base.MultiNetworkBaseTest): def testRouterSolicitationBackoff(self): # Test error tolerance - EPSILON = 0.1 + EPSILON = 0.15 # Minimum RFC3315 S14 backoff MIN_EXP = 1.9 - EPSILON # Maximum RFC3315 S14 backoff MAX_EXP = 2.1 + EPSILON SOLICITATION_INTERVAL = 1 - # Linear backoff for 4 samples yields 3.6 < T < 4.4 - # Exponential backoff for 4 samples yields 4.83 < T < 9.65 + # Linear backoff for 4 samples yields 3.5 < T < 4.5 + # Exponential backoff for 4 samples yields 4.36 < T < 10.39 REQUIRED_SAMPLES = 4 # Give up after 10 seconds. Tuned for REQUIRED_SAMPLES = 4 SAMPLE_INTERVAL = 10 -- cgit v1.2.3