Skip to content

Commit 69f8eeb

Browse files
lucasmundimaauren
authored andcommitted
fix(bgp_policies_test.go): fails if there are any unexpected statement
1 parent d173c98 commit 69f8eeb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/controllers/routing/bgp_policies_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,9 @@ func checkPolicies(t *testing.T, testcase PolicyTestCase, gobgpDirection gobgpap
11071107
t.Errorf("statement %v not found", expectedStatement)
11081108
}
11091109
}
1110+
if len(policyStatements) != len(foundPolicy.Statements) {
1111+
t.Errorf("unexpected statement found: %v", foundPolicy.Statements)
1112+
}
11101113
})
11111114
if err != nil {
11121115
t.Fatalf("expected to find a policy, but none were returned")

0 commit comments

Comments
 (0)