mirror of
https://github.com/jech/galene.git
synced 2024-11-09 02:05:59 +01:00
Increase measured time in TestTime.
This commit is contained in:
parent
aaaaae5588
commit
9ba1037208
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue