|
@ -43,7 +43,7 @@ func TestRepeat(test *testing.T) { |
|
|
short := time.Duration(20) * time.Millisecond |
|
|
short := time.Duration(20) * time.Millisecond |
|
|
// delay waits for cnt durations, an a little extra
|
|
|
// delay waits for cnt durations, an a little extra
|
|
|
delay := func(cnt int) time.Duration { |
|
|
delay := func(cnt int) time.Duration { |
|
|
return time.Duration(cnt)*dur + time.Millisecond |
|
|
|
|
|
|
|
|
return time.Duration(cnt)*dur + time.Duration(5)*time.Millisecond |
|
|
} |
|
|
} |
|
|
t := NewRepeatTimer("bar", dur) |
|
|
t := NewRepeatTimer("bar", dur) |
|
|
|
|
|
|
|
|