pkg: networkfs: etchosts: fixed tests

This patch fixes the fact that the tests for pkg/networkfs/etchosts
couldn't build due to syntax errors.

Docker-DCO-1.1-Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (github: cyphar)
This commit is contained in:
cyphar 2014-05-07 00:42:22 +10:00
parent 8cd2903898
commit 52e64d2f09

View file

@ -14,7 +14,7 @@ func TestBuildHostnameDomainname(t *testing.T) {
}
defer os.Remove(file.Name())
err = Build(file.Name(), "10.11.12.13", "testhostname", "testdomainname")
err = Build(file.Name(), "10.11.12.13", "testhostname", "testdomainname", nil)
if err != nil {
t.Fatal(err)
}
@ -36,7 +36,7 @@ func TestBuildHostname(t *testing.T) {
}
defer os.Remove(file.Name())
err = Build(file.Name(), "10.11.12.13", "testhostname", "")
err = Build(file.Name(), "10.11.12.13", "testhostname", "", nil)
if err != nil {
t.Fatal(err)
}
@ -58,7 +58,7 @@ func TestBuildNoIP(t *testing.T) {
}
defer os.Remove(file.Name())
err = Build(file.Name(), "", "testhostname", "")
err = Build(file.Name(), "", "testhostname", "", nil)
if err != nil {
t.Fatal(err)
}