Skip to content

Commit

Permalink
Tests: use require instead of assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
zipperle committed Feb 2, 2024
1 parent cab9f38 commit b39c30c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libbeat/processors/fingerprint/fingerprint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,10 @@ func TestProcessorStringer(t *testing.T) {
"encoding": "hex",
"method": "md5",
})
assert.NoError(t, err)
require.NoError(t, err)
p, err := New(testConfig)
assert.NoError(t, err)
assert.Equal(t, `fingerprint={"Method":"md5","Encoding":"hex","Fields":["field1"],"TargetField":"fingerprint","IgnoreMissing":false}`, fmt.Sprint(p))
require.NoError(t, err)
require.Equal(t, `fingerprint={"Method":"md5","Encoding":"hex","Fields":["field1"],"TargetField":"fingerprint","IgnoreMissing":false}`, fmt.Sprint(p))
}

func BenchmarkHashMethods(b *testing.B) {
Expand Down

0 comments on commit b39c30c

Please sign in to comment.