Bang on test server every 100 ms

pull/2333/head
Philip O'Toole 2015-04-17 12:58:32 -07:00 committed by Philip O'Toole
parent 88b9276e33
commit 50b08ff73f
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ func queryAndWait(t *testing.T, nodes Cluster, urlDb, q, expected, expectPattern
v.Set("db", urlDb) v.Set("db", urlDb)
} }
sleep := 1 * time.Second sleep := 100 * time.Millisecond
// Check to see if they set the env for duration sleep // Check to see if they set the env for duration sleep
if sleepRaw := os.Getenv("TEST_SLEEP"); sleepRaw != "" { if sleepRaw := os.Getenv("TEST_SLEEP"); sleepRaw != "" {
d, err := time.ParseDuration(sleepRaw) d, err := time.ParseDuration(sleepRaw)