testutils: pass netConf in for version operations; pass raw result out for tests

This commit is contained in:
Dan Williams
2016-11-22 10:02:39 -06:00
parent dcadf4f9b5
commit cb4cd0e12c
8 changed files with 14 additions and 14 deletions

View File

@ -62,7 +62,7 @@ var _ = Describe("host-local Operations", func() {
}
// Allocate the IP
result, err := testutils.CmdAddWithResult(nspath, ifname, func() error {
result, _, err := testutils.CmdAddWithResult(nspath, ifname, []byte(conf), func() error {
return cmdAdd(args)
})
Expect(err).NotTo(HaveOccurred())
@ -124,7 +124,7 @@ var _ = Describe("host-local Operations", func() {
}
// Allocate the IP
result, err := testutils.CmdAddWithResult(nspath, ifname, func() error {
result, _, err := testutils.CmdAddWithResult(nspath, ifname, []byte(conf), func() error {
return cmdAdd(args)
})
Expect(err).NotTo(HaveOccurred())