diff --git a/plugin_test.go b/plugin_test.go index bbf6ddf..4d31e31 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -3,7 +3,6 @@ package main import ( "bytes" "io" - "io/ioutil" "os" "reflect" "strings" @@ -410,7 +409,7 @@ func TestWrongFingerprint(t *testing.T) { func getHostPublicKeyFile(keypath string) (ssh.PublicKey, error) { var pubkey ssh.PublicKey var err error - buf, err := ioutil.ReadFile(keypath) + buf, err := os.ReadFile(keypath) if err != nil { return nil, err }