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

[chore]: enable len and empty rules from testifylint (#5832)

#### Description

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

This PR enables
[empty](https://github.com/Antonboom/testifylint?tab=readme-ov-file#empty)
and
[len](https://github.com/Antonboom/testifylint?tab=readme-ov-file#len)
rules 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-21 17:04:28 +02:00
committed by GitHub
parent aef9e4fa2f
commit 063239fa37
33 changed files with 132 additions and 134 deletions
+1 -1
View File
@@ -430,7 +430,7 @@ func TestBufferExporter(t *testing.T) {
// Nothing to flush.
assert.NoError(t, e.ForceFlush(ctx), "ForceFlush empty")
assert.Equal(t, 1, exp.ExportN(), "Export number changed")
assert.Len(t, exp.Records(), 0, "exported non-zero Records")
assert.Empty(t, exp.Records(), "exported non-zero Records")
})
t.Run("ContextCancelled", func(t *testing.T) {