mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 09:43:17 -04:00 
			
		
		
		
	cleanup deprecated package io/ioutil (#4920)
Signed-off-by: zounengren <zouyee1989@gmail.com>
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user