From 9ba10372087d7d65a633de99d652121473abc7ec Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sun, 14 Feb 2021 20:16:27 +0100 Subject: [PATCH] Increase measured time in TestTime. --- rtptime/rtptime_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtptime/rtptime_test.go b/rtptime/rtptime_test.go index e179acf..c4783ee 100644 --- a/rtptime/rtptime_test.go +++ b/rtptime/rtptime_test.go @@ -26,9 +26,9 @@ func differs(a, b, delta uint64) bool { func TestTime(t *testing.T) { a := Now(48000) - time.Sleep(4 * time.Millisecond) + time.Sleep(40 * time.Millisecond) b := Now(48000) - a - if differs(b, 4*48, 16) { + if differs(b, 40*48, 160) { t.Errorf("Expected %v, got %v", 4*48, b) }