Skip to content

Commit

Permalink
wait for metrics traffic to be allowed through
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaaaaaalex committed Nov 19, 2024
1 parent 676892e commit 1916b52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions felix/fv/pre_dnat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ var _ = infrastructure.DatastoreDescribe("pre-dnat with initialized Felix, 2 wor

mangleRulesMetric := tc.Felixes[0].PromMetric("felix_iptables_rules{ip_version=\"4\",table=\"mangle\"}")
filterRulesMetric := tc.Felixes[0].PromMetric("felix_iptables_rules{ip_version=\"4\",table=\"filter\"}")
Eventually(mangleRulesMetric.Int, "5s").ShouldNot(BeZero(), "Metrics traffic was never allowed")

collectMetrics := func() (mangleMetric int, filterMetric int) {
mangleMetric, err := mangleRulesMetric.Int()
Expand Down

0 comments on commit 1916b52

Please sign in to comment.