mirror of
https://github.com/golang/go
synced 2024-11-25 06:37:58 -07:00
net: move hosts testdata to testdata folder
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5687052
This commit is contained in:
parent
6ba77ecb6a
commit
6e4ddc6872
@ -34,7 +34,7 @@ var hosttests = []hostTest{
|
|||||||
|
|
||||||
func TestLookupStaticHost(t *testing.T) {
|
func TestLookupStaticHost(t *testing.T) {
|
||||||
p := hostsPath
|
p := hostsPath
|
||||||
hostsPath = "hosts_testdata"
|
hostsPath = "testdata/hosts"
|
||||||
for i := 0; i < len(hosttests); i++ {
|
for i := 0; i < len(hosttests); i++ {
|
||||||
tt := hosttests[i]
|
tt := hosttests[i]
|
||||||
ips := lookupStaticHost(tt.host)
|
ips := lookupStaticHost(tt.host)
|
||||||
|
Loading…
Reference in New Issue
Block a user