diff --git a/api/semaphore_test.go b/api/semaphore_test.go index 4cec164f4e..1802ab2a04 100644 --- a/api/semaphore_test.go +++ b/api/semaphore_test.go @@ -500,7 +500,7 @@ func TestSemaphore_OneShot(t *testing.T) { t.Fatalf("should not have acquired the semaphore") } diff := time.Now().Sub(start) - if diff < contender.opts.SemaphoreWaitTime || diff > 2*contender.opts.SemaphoreWaitTime { + if diff < contender.opts.SemaphoreWaitTime { t.Fatalf("time out of bounds: %9.6f", diff.Seconds()) }