mirror of
https://github.com/golang/go
synced 2024-11-21 22:44:40 -07:00
time: run TestTicker for longer during short test, otherwise it fails
R=golang-dev, r CC=golang-dev https://golang.org/cl/5671049
This commit is contained in:
parent
60797a375c
commit
9a44560033
@ -13,7 +13,7 @@ func TestTicker(t *testing.T) {
|
||||
const Count = 10
|
||||
Delta := 100 * Millisecond
|
||||
if testing.Short() {
|
||||
Delta = 10 * Millisecond
|
||||
Delta = 20 * Millisecond
|
||||
}
|
||||
ticker := NewTicker(Delta)
|
||||
t0 := Now()
|
||||
|
Loading…
Reference in New Issue
Block a user