fix existing tests

This commit is contained in:
Clive Jevons
2022-07-26 11:41:23 +02:00
committed by Alex Stockinger
parent c28a1a24d8
commit d3332fe176
2 changed files with 14 additions and 9 deletions

View File

@@ -101,7 +101,8 @@ func TestRuleCache(t *testing.T) {
client := &fakeClient{}
controller.v4 = client
controller.v6 = client
if err := controller.Set(tc.rules); err != nil {
ruleSet := RuleSet{AppendRules: tc.rules}
if err := controller.Set(ruleSet); err != nil {
t.Fatalf("test case %q: Set should not fail: %v", tc.name, err)
}
// Reset the client's calls so we can examine how many times