cleanup deprecated package io/ioutil (#4920)

Signed-off-by: zounengren <zouyee1989@gmail.com>
This commit is contained in:
Zou Nengren 2021-10-13 15:30:31 +08:00 committed by GitHub
parent 44fcca0e0d
commit 5191959bd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 53 additions and 72 deletions

View file

@ -1,7 +1,7 @@
package test
import (
"io/ioutil"
"os"
"testing"
"time"
@ -45,7 +45,7 @@ func TestZoneReload(t *testing.T) {
}
// Remove RR from the Apex
ioutil.WriteFile(name, []byte(exampleOrgUpdated), 0644)
os.WriteFile(name, []byte(exampleOrgUpdated), 0644)
time.Sleep(20 * time.Millisecond) // reload time, with some race insurance