From c9694b1ba1452403a521c3952537528ce64c9a96 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Mon, 27 Nov 2017 18:46:57 -0600 Subject: [PATCH] fix warnings --- pubsub/query/query_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pubsub/query/query_test.go b/pubsub/query/query_test.go index 93b63a15..b16abdaf 100644 --- a/pubsub/query/query_test.go +++ b/pubsub/query/query_test.go @@ -45,15 +45,15 @@ func TestMatches(t *testing.T) { } for _, tc := range testCases { - query, err := query.New(tc.s) + q, err := query.New(tc.s) if !tc.err { require.Nil(t, err) } if tc.matches { - assert.True(t, query.Matches(tc.tags), "Query '%s' should match %v", tc.s, tc.tags) + assert.True(t, q.Matches(tc.tags), "Query '%s' should match %v", tc.s, tc.tags) } else { - assert.False(t, query.Matches(tc.tags), "Query '%s' should not match %v", tc.s, tc.tags) + assert.False(t, q.Matches(tc.tags), "Query '%s' should not match %v", tc.s, tc.tags) } } } @@ -77,9 +77,9 @@ func TestConditions(t *testing.T) { } for _, tc := range testCases { - query, err := query.New(tc.s) + q, err := query.New(tc.s) require.Nil(t, err) - assert.Equal(t, tc.conditions, query.Conditions()) + assert.Equal(t, tc.conditions, q.Conditions()) } }