You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-25 22:41:46 +02:00
Replace tenv with usetesting (#6313)
The `tenv` linter is deprecated in favor of `usetesting`.
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -267,7 +266,7 @@ func TestNewBatchSpanProcessorWithEnvOptions(t *testing.T) {
|
||||
for _, option := range options {
|
||||
t.Run(option.name, func(t *testing.T) {
|
||||
for k, v := range option.envs {
|
||||
require.NoError(t, os.Setenv(k, v))
|
||||
t.Setenv(k, v)
|
||||
}
|
||||
|
||||
te := testBatchExporter{}
|
||||
|
||||
Reference in New Issue
Block a user