Merge pull request #9538 from influxdata/js-point-monitor-test-fix

Use the error in the point limit monitor test
pull/9531/head
Jonathan A. Sternberg 2018-03-09 12:46:14 -06:00 committed by GitHub
commit c3664d9236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,10 @@ func TestPointLimitMonitor(t *testing.T) {
itrs, _, err := query.Select(ctx, stmt, &shardMapper, query.SelectOptions{ itrs, _, err := query.Select(ctx, stmt, &shardMapper, query.SelectOptions{
MaxPointN: 1, MaxPointN: 1,
}) })
if err != nil {
t.Fatalf("unexpected error: %s", err)
}
if _, err := Iterators(itrs).ReadAll(); err == nil { if _, err := Iterators(itrs).ReadAll(); err == nil {
t.Fatalf("expected an error") t.Fatalf("expected an error")
} else if got, want := err.Error(), "max-select-point limit exceeed: (10/1)"; got != want { } else if got, want := err.Error(), "max-select-point limit exceeed: (10/1)"; got != want {