Merge pull request #7808 from influxdata/mr-fix-benchmarks

Fix broken server benchmarks
pull/7816/head
Mark Rushakoff 2017-01-09 15:13:01 -08:00 committed by GitHub
commit 8c2cfd14af
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ func benchmarkServerQueryCount(b *testing.B, pointN int) {
for i := 0; i < b.N; i++ {
if strResult, err = benchServer.Query(`SELECT count(value) FROM db0.rp0.cpu`); err != nil {
b.Fatal(err)
} else if strResult != fmt.Sprintf(`{"results":[{"series":[{"name":"cpu","columns":["time","count"],"values":[["1970-01-01T00:00:00Z",%d]]}]}]}`, pointN) {
} else if strResult != fmt.Sprintf(`{"results":[{"statement_id":0,"series":[{"name":"cpu","columns":["time","count"],"values":[["1970-01-01T00:00:00Z",%d]]}]}]}`, pointN) {
b.Fatalf("unexpected result: %s", strResult)
}
}