Skip to content

Commit

Permalink
Make BGP prefix checking less flaky (#423)
Browse files Browse the repository at this point in the history
* Make BGP prefix checking less flaky

* Increase timeout

* Revert timeout back to 1min, 3min is overkill
  • Loading branch information
wenovus authored Jun 6, 2024
1 parent c6c7f5e commit 41b73cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func checkOTGBGP4Prefix(t *testing.T, otg *otg.OTG, config gosnappi.Config, expe
t.Helper()
_, ok := gnmi.WatchAll(t,
otg,
gnmi.OTG().BgpPeer(expectedOTGBGPPrefix.PeerName).UnicastIpv4PrefixAny().State(),
gnmi.OTG().BgpPeer(expectedOTGBGPPrefix.PeerName).UnicastIpv4PrefixAny().WithAddress(expectedOTGBGPPrefix.Address).State(),
time.Minute,
func(v *ygnmi.Value[*otgtelemetry.BgpPeer_UnicastIpv4Prefix]) bool {
_, present := v.Val()
Expand All @@ -302,7 +302,7 @@ func checkOTGBGP6Prefix(t *testing.T, otg *otg.OTG, config gosnappi.Config, expe
t.Helper()
_, ok := gnmi.WatchAll(t,
otg,
gnmi.OTG().BgpPeer(expectedOTGBGPPrefix.PeerName).UnicastIpv6PrefixAny().State(),
gnmi.OTG().BgpPeer(expectedOTGBGPPrefix.PeerName).UnicastIpv6PrefixAny().WithAddress(expectedOTGBGPPrefix.Address).State(),
time.Minute,
func(v *ygnmi.Value[*otgtelemetry.BgpPeer_UnicastIpv6Prefix]) bool {
_, present := v.Val()
Expand Down

0 comments on commit 41b73cf

Please sign in to comment.