1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00

[chore]: enable expected-actual rule from testifylint (#5848)

Testifylint is a linter that provides best practices with the use of
testify.

This PR enables
[expected-actual](https://github.com/Antonboom/testifylint?tab=readme-ov-file#expected-actual)
rule from [testifylint](https://github.com/Antonboom/testifylint)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2024-09-26 12:04:33 +02:00
committed by GitHub
parent f710cecfc5
commit 6edc7a63df
25 changed files with 62 additions and 63 deletions
+2 -2
View File
@@ -118,9 +118,9 @@ func TestRecorderEmitAndReset(t *testing.T) {
ctx := context.Background()
l.Emit(ctx, r1)
assert.Equal(t, r.Result()[0].Records, []EmittedRecord{
assert.Equal(t, []EmittedRecord{
{r1, ctx},
})
}, r.Result()[0].Records)
nl := r.Logger("test")
assert.Empty(t, r.Result()[1].Records)