Skip to content

Commit 4c4433c

Browse files
committed
term_test.go: replace io/ioutil with io and os package
Signed-off-by: cui fliter <imcusg@gmail.com>
1 parent a9ba230 commit 4c4433c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

term_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package term_test
66

77
import (
8-
"io/ioutil"
98
"os"
109
"runtime"
1110
"testing"
@@ -14,7 +13,7 @@ import (
1413
)
1514

1615
func TestIsTerminalTempFile(t *testing.T) {
17-
file, err := ioutil.TempFile("", "TestIsTerminalTempFile")
16+
file, err := os.CreateTemp("", "TestIsTerminalTempFile")
1817
if err != nil {
1918
t.Fatal(err)
2019
}

0 commit comments

Comments
 (0)