You've already forked opentelemetry-go
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user