use AddError everywhere (#2372)

This commit is contained in:
Patrick Hemmer
2017-04-24 14:13:26 -04:00
committed by Daniel Nelson
parent 801f6cb8a0
commit 06baf7cf78
95 changed files with 341 additions and 531 deletions

View File

@@ -141,7 +141,7 @@ func TestIptables_Gather(t *testing.T) {
},
}
acc := new(testutil.Accumulator)
err := ipt.Gather(acc)
err := acc.GatherError(ipt.Gather)
if !reflect.DeepEqual(tt.err, err) {
t.Errorf("%d: expected error '%#v' got '%#v'", i, tt.err, err)
}
@@ -199,7 +199,7 @@ func TestIptables_Gather_listerError(t *testing.T) {
},
}
acc := new(testutil.Accumulator)
err := ipt.Gather(acc)
err := acc.GatherError(ipt.Gather)
if !reflect.DeepEqual(err, errFoo) {
t.Errorf("Expected error %#v got\n%#v\n", errFoo, err)
}