You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-27 22:49:15 +02:00
Replace ioutil with io and os (#3058)
This commit is contained in:
committed by
GitHub
parent
e99a0ac0b5
commit
eb55e60d3b
@@ -19,7 +19,7 @@ package resource_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -67,8 +67,8 @@ func TestUnameError(t *testing.T) {
|
||||
func TestGetFirstAvailableFile(t *testing.T) {
|
||||
tempDir := t.TempDir()
|
||||
|
||||
file1, _ := ioutil.TempFile(tempDir, "candidate_")
|
||||
file2, _ := ioutil.TempFile(tempDir, "candidate_")
|
||||
file1, _ := os.CreateTemp(tempDir, "candidate_")
|
||||
file2, _ := os.CreateTemp(tempDir, "candidate_")
|
||||
|
||||
filename1, filename2 := file1.Name(), file2.Name()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user