1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-17 01:12:45 +02:00

Add errorlint linter (#5535)

This is the last PR adding missing linters, adding
[errorlint](https://github.com/polyfloyd/go-errorlint).

Co-authored-by: Sam Xie <sam@samxie.me>
This commit is contained in:
Damien Mathieu
2024-06-25 19:55:00 +02:00
committed by GitHub
parent 921eb701b1
commit 6d45f283c7
23 changed files with 32 additions and 22 deletions

View File

@ -329,7 +329,7 @@ func TestBatchSpanProcessorExportTimeout(t *testing.T) {
generateSpan(t, tr, testOption{genNumSpans: 1})
tp.UnregisterSpanProcessor(bsp)
if exp.err != context.DeadlineExceeded {
if !errors.Is(exp.err, context.DeadlineExceeded) {
t.Errorf("context deadline error not returned: got %+v", exp.err)
}
}