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