Skip to content

Commit

Permalink
fix(bgp_policies_test.go): fails if there are any unexpected statement
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmundim authored and aauren committed Nov 3, 2021
1 parent 82cc8b4 commit be96dea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controllers/routing/bgp_policies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,9 @@ func checkPolicies(t *testing.T, testcase PolicyTestCase, gobgpDirection gobgpap
t.Errorf("statement %v not found", expectedStatement)
}
}
if len(policyStatements) != len(foundPolicy.Statements) {
t.Errorf("unexpected statement found: %v", foundPolicy.Statements)
}
})
if err != nil {
t.Fatalf("expected to find a policy, but none were returned")
Expand Down

0 comments on commit be96dea

Please sign in to comment.