Skip to content

Commit a727541

Browse files
committed
avoid ioutil.MkdirTemp, it's been deprecated for a while
1 parent e9a8e6e commit a727541

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/smoke_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package tests
33
import (
44
"fmt"
55
"os"
6-
"io/ioutil"
76
"os/exec"
87
"path/filepath"
98
"testing"
@@ -28,7 +27,7 @@ func TestSanity(t *testing.T) {
2827
}
2928

3029
func assertConvertsFine(t *testing.T, xsdPath string) []byte {
31-
dname, err := ioutil.TempDir("", "xsd2go_tests_")
30+
dname, err := os.MkdirTemp("", "xsd2go_tests_")
3231
assert.Nil(t, err)
3332
defer os.RemoveAll(dname)
3433

0 commit comments

Comments
 (0)