You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-29 23:07:45 +02:00
Replace tenv with usetesting (#6313)
The `tenv` linter is deprecated in favor of `usetesting`.
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
func TestReadFileExistent(t *testing.T) {
|
||||
fileContents := "foo"
|
||||
|
||||
f, err := os.CreateTemp("", "readfile_")
|
||||
f, err := os.CreateTemp(t.TempDir(), "readfile_")
|
||||
require.NoError(t, err)
|
||||
|
||||
defer os.Remove(f.Name())
|
||||
@@ -31,7 +31,7 @@ func TestReadFileExistent(t *testing.T) {
|
||||
|
||||
func TestReadFileNonExistent(t *testing.T) {
|
||||
// create unique filename
|
||||
f, err := os.CreateTemp("", "readfile_")
|
||||
f, err := os.CreateTemp(t.TempDir(), "readfile_")
|
||||
require.NoError(t, err)
|
||||
|
||||
// make file non-existent
|
||||
|
||||
Reference in New Issue
Block a user