Should be no need to wait 60 seconds

Each of these tests relies on a write of only a few points. It simply
should not take 60 seconds.
pull/2330/head
Philip O'Toole 2015-04-11 16:20:23 -07:00 committed by Philip O'Toole
parent 411ce965db
commit f349c23964
1 changed files with 1 additions and 1 deletions

View File

@ -1358,7 +1358,7 @@ func runTestsData(t *testing.T, testName string, nodes Cluster, database, retent
urlDb = tt.queryDb
}
qry := rewriteDbRp(tt.query, database, retention)
got, ok := queryAndWait(t, qNodes, rewriteDbRp(urlDb, database, retention), qry, rewriteDbRp(tt.expected, database, retention), rewriteDbRp(tt.expectPattern, database, retention), 60*time.Second)
got, ok := queryAndWait(t, qNodes, rewriteDbRp(urlDb, database, retention), qry, rewriteDbRp(tt.expected, database, retention), rewriteDbRp(tt.expectPattern, database, retention), 10*time.Second)
if !ok {
if tt.expected != "" {
t.Errorf("Test #%d: \"%s\" failed\n query: %s\n exp: %s\n got: %s\n", i, name, qry, rewriteDbRp(tt.expected, database, retention), got)