diff options
Diffstat (limited to 'plugin/hosts/hostsfile_test.go')
-rw-r--r-- | plugin/hosts/hostsfile_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugin/hosts/hostsfile_test.go b/plugin/hosts/hostsfile_test.go index 65841fa42..cb923ab60 100644 --- a/plugin/hosts/hostsfile_test.go +++ b/plugin/hosts/hostsfile_test.go @@ -9,12 +9,11 @@ import ( "reflect" "strings" "testing" - "time" ) func testHostsfile(file string) *Hostsfile { - h := &Hostsfile{expire: time.Now().Add(1 * time.Hour), Origins: []string{"."}} - h.Parse(strings.NewReader(file)) + h := &Hostsfile{Origins: []string{"."}} + h.parseReader(strings.NewReader(file)) return h } |