From 87ee83f4cba0771599d374b6f9ddf7eaaf22efea Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Sat, 30 Nov 2019 22:33:52 -0600 Subject: [PATCH] check errors in test to fix lint --- api_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api_test.go b/api_test.go index 95c0e0f5b..b6cfa8d07 100644 --- a/api_test.go +++ b/api_test.go @@ -87,13 +87,17 @@ func TestAPI_ImportColumnAttrs(t *testing.T) { val0 := attrFun(uint64(n)) attrVals0 = append(attrVals0, val0) setPql0 := fmt.Sprintf("Set(%d, %s=0) ", n, field) - m0.API.Query(ctx, &pilosa.QueryRequest{Index: index, Query: setPql0}) + if _, err := m0.API.Query(ctx, &pilosa.QueryRequest{Index: index, Query: setPql0}); err != nil { + t.Fatal(err) + } columnIDs1 = append(columnIDs1, uint64(n+ShardWidth)) val1 := attrFun(uint64(n + ShardWidth)) attrVals1 = append(attrVals1, val1) setPql1 := fmt.Sprintf("Set(%d, %s=0) ", n+ShardWidth, field) - m1.API.Query(ctx, &pilosa.QueryRequest{Index: index, Query: setPql1}) + if _, err := m1.API.Query(ctx, &pilosa.QueryRequest{Index: index, Query: setPql1}); err != nil { + t.Fatal(err) + } } // send shard0 to node1