From 507432648b0a641ba49bccf3c88b26a3aef6a61a Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Sun, 28 Jul 2019 07:10:37 -0700 Subject: [PATCH] flapper Signed-off-by: Derek Collison --- test/ping_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ping_test.go b/test/ping_test.go index 63093dcc..4d6db38d 100644 --- a/test/ping_test.go +++ b/test/ping_test.go @@ -190,7 +190,7 @@ func TestUnpromptedPong(t *testing.T) { func TestPingSuppresion(t *testing.T) { pingInterval := 100 * time.Millisecond - + highWater := 130 * time.Millisecond opts := DefaultTestOptions opts.Port = PING_TEST_PORT opts.PingInterval = pingInterval @@ -214,7 +214,7 @@ func TestPingSuppresion(t *testing.T) { t.Fatalf("pingTime too low: %v", pingTime) } // +5 is just for fudging in case things are slow in the testing system. - if pingTime > pingInterval+(pingInterval/5)+5 { + if pingTime > highWater { t.Fatalf("pingTime too high: %v", pingTime) }