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:
Alex Brainman 2012-02-15 14:56:47 +11:00
parent 60797a375c
commit 9a44560033

View File

@ -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()