aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/parse/host_test.go
diff options
context:
space:
mode:
authorGravatar Zou Nengren <zouyee1989@gmail.com> 2021-10-13 15:30:31 +0800
committerGravatar GitHub <noreply@github.com> 2021-10-13 09:30:31 +0200
commit5191959bd7278b6ec990093ec708c262d7ef416e (patch)
tree0a48bb5bfd5f18673edee9ab7aa55497aa28eefb /plugin/pkg/parse/host_test.go
parent44fcca0e0d67d66dee72ef00d389a16c2ff066a9 (diff)
downloadcoredns-5191959bd7278b6ec990093ec708c262d7ef416e.tar.gz
coredns-5191959bd7278b6ec990093ec708c262d7ef416e.tar.zst
coredns-5191959bd7278b6ec990093ec708c262d7ef416e.zip
cleanup deprecated package io/ioutil (#4920)
Signed-off-by: zounengren <zouyee1989@gmail.com>
Diffstat (limited to 'plugin/pkg/parse/host_test.go')
-rw-r--r--plugin/pkg/parse/host_test.go3
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")
}