1
0
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:
Håvard Anda Estensen
2022-08-03 23:45:05 +02:00
committed by GitHub
parent e99a0ac0b5
commit eb55e60d3b
14 changed files with 29 additions and 39 deletions

View File

@@ -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()