fix iptables test storage usage

This commit is contained in:
Clive Jevons 2022-07-26 15:27:05 +02:00 committed by Alex Stockinger
parent cd22dbe89e
commit 5dc7c39f4a

View File

@ -126,7 +126,7 @@ func TestSet(t *testing.T) {
t.Fatalf("test case %q: got unexpected error %v", tc.name, err) t.Fatalf("test case %q: got unexpected error %v", tc.name, err)
} }
if len(tc.storageOut) != len(client.storage) { if len(tc.storageOut) != len(client.storage) {
t.Errorf("test case %q: expected %d rules in storage, got %d", tc.name, len(tc.appendOut), len(client.storage)) t.Errorf("test case %q: expected %d rules in storage, got %d", tc.name, len(tc.storageOut), len(client.storage))
} else { } else {
for i := range tc.storageOut { for i := range tc.storageOut {
if tc.storageOut[i].String() != client.storage[i].String() { if tc.storageOut[i].String() != client.storage[i].String() {