Browse Source

fix warnings

pull/1842/head
Anton Kaliaev 7 years ago
parent
commit
c9694b1ba1
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      pubsub/query/query_test.go

+ 5
- 5
pubsub/query/query_test.go View File

@ -45,15 +45,15 @@ func TestMatches(t *testing.T) {
} }
for _, tc := range testCases { for _, tc := range testCases {
query, err := query.New(tc.s)
q, err := query.New(tc.s)
if !tc.err { if !tc.err {
require.Nil(t, err) require.Nil(t, err)
} }
if tc.matches { 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 { } 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 { for _, tc := range testCases {
query, err := query.New(tc.s)
q, err := query.New(tc.s)
require.Nil(t, err) require.Nil(t, err)
assert.Equal(t, tc.conditions, query.Conditions())
assert.Equal(t, tc.conditions, q.Conditions())
} }
} }

Loading…
Cancel
Save