Merge pull request #9538 from influxdata/js-point-monitor-test-fix
Use the error in the point limit monitor testpull/9531/head
commit
c3664d9236
|
@ -49,6 +49,10 @@ func TestPointLimitMonitor(t *testing.T) {
|
|||
itrs, _, err := query.Select(ctx, stmt, &shardMapper, query.SelectOptions{
|
||||
MaxPointN: 1,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatalf("unexpected error: %s", err)
|
||||
}
|
||||
|
||||
if _, err := Iterators(itrs).ReadAll(); err == nil {
|
||||
t.Fatalf("expected an error")
|
||||
} else if got, want := err.Error(), "max-select-point limit exceeed: (10/1)"; got != want {
|
||||
|
|
Loading…
Reference in New Issue