From a3f559875f2611ee6e63c8f59909089c040efe0e Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Mon, 2 Aug 2021 01:59:06 +0200 Subject: [PATCH] Increase time interval in TestTime. The lower interval made us too sensible too scheduling. --- rtptime/rtptime_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtptime/rtptime_test.go b/rtptime/rtptime_test.go index c4783ee..9f8b01a 100644 --- a/rtptime/rtptime_test.go +++ b/rtptime/rtptime_test.go @@ -40,10 +40,10 @@ func TestTime(t *testing.T) { } c = Jiffies() - time.Sleep(time.Second * 100000 / JiffiesPerSec) + time.Sleep(time.Second * 10000000 / JiffiesPerSec) d = Jiffies() - c - if differs(d, 100000, 10000) { - t.Errorf("Expected %v, got %v", 4000, d) + if differs(d, 10000000, 1000000) { + t.Errorf("Expected %v, got %v", 10000000, d) } }