From 21164e1d8cba1e81801d27187bcadfdc5ce7a5a8 Mon Sep 17 00:00:00 2001 From: "Jonathan A. Sternberg" Date: Fri, 9 Mar 2018 11:09:13 -0600 Subject: [PATCH] Use the error in the point limit monitor test --- query/monitor_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/query/monitor_test.go b/query/monitor_test.go index 74369a6b15..07836161bc 100644 --- a/query/monitor_test.go +++ b/query/monitor_test.go @@ -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 {