Skip to content

Commit

Permalink
Rename variable in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Jan 20, 2020
1 parent ebe0e7d commit 08eb8e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/metricbeat/module/sql/query/query_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ func getConfig(cfg testFetchConfig) map[string]interface{} {

func assertFieldNotContains(field, s string) func(t *testing.T, event beat.Event) {
return func(t *testing.T, event beat.Event) {
address, err := event.GetValue(field)
value, err := event.GetValue(field)
assert.NoError(t, err)
require.NotEmpty(t, address.(string))
require.NotContains(t, address.(string), s)
require.NotEmpty(t, value.(string))
require.NotContains(t, value.(string), s)
}
}

0 comments on commit 08eb8e3

Please sign in to comment.