aboutsummaryrefslogtreecommitdiff
path: root/plugin/hosts/hostsfile_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/hosts/hostsfile_test.go')
-rw-r--r--plugin/hosts/hostsfile_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/hosts/hostsfile_test.go b/plugin/hosts/hostsfile_test.go
index 26a2916f0..db0e63d75 100644
--- a/plugin/hosts/hostsfile_test.go
+++ b/plugin/hosts/hostsfile_test.go
@@ -12,7 +12,11 @@ import (
)
func testHostsfile(file string) *Hostsfile {
- h := &Hostsfile{Origins: []string{"."}}
+ h := &Hostsfile{
+ Origins: []string{"."},
+ hmap: newHostsMap(),
+ options: newOptions(),
+ }
h.parseReader(strings.NewReader(file))
return h
}