diff options
Diffstat (limited to 'plugin/pkg/parse/host_test.go')
-rw-r--r-- | plugin/pkg/parse/host_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/pkg/parse/host_test.go b/plugin/pkg/parse/host_test.go index 274eed225..611f8284f 100644 --- a/plugin/pkg/parse/host_test.go +++ b/plugin/pkg/parse/host_test.go @@ -1,7 +1,6 @@ package parse import ( - "io/ioutil" "os" "testing" @@ -61,7 +60,7 @@ func TestHostPortOrFile(t *testing.T) { }, } - err := ioutil.WriteFile("resolv.conf", []byte("nameserver 127.0.0.1\n"), 0600) + err := os.WriteFile("resolv.conf", []byte("nameserver 127.0.0.1\n"), 0600) if err != nil { t.Fatalf("Failed to write test resolv.conf") } |