1
0
mirror of https://github.com/golang/go synced 2024-11-22 11:44:41 -07:00

time: run full TestTicker test even during short tests

R=golang-dev, r, bradfitz, r
CC=golang-dev
https://golang.org/cl/5689076
This commit is contained in:
Alex Brainman 2012-02-23 12:07:59 +11:00
parent 123130f789
commit fea7f07e56

View File

@ -12,9 +12,6 @@ import (
func TestTicker(t *testing.T) { func TestTicker(t *testing.T) {
const Count = 10 const Count = 10
Delta := 100 * Millisecond Delta := 100 * Millisecond
if testing.Short() {
Delta = 20 * Millisecond
}
ticker := NewTicker(Delta) ticker := NewTicker(Delta)
t0 := Now() t0 := Now()
for i := 0; i < Count; i++ { for i := 0; i < Count; i++ {