Skip to content

Commit

Permalink
Fix flaky integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Hongliang Liu <lhongliang@vmware.com>
  • Loading branch information
hongliangl committed Jun 27, 2024
1 parent 6004f42 commit 28fa4d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/integration/agent/gobgp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,12 @@ func TestGoBGPLifecycle(t *testing.T) {
peerKeys := sets.New[string]()
peers, err := server.GetPeers(ctx)
if err != nil {
t.Logf("Failed to get peers from server: %v", err)
return nil
}
for _, peer := range peers {
if peer.SessionState != bgp.SessionEstablished {
t.Logf("Session %s %s", peer.Address, peer.SessionState)
continue
}
peerKeys.Insert(fmt.Sprintf("%s-%d", peer.Address, peer.ASN))
Expand Down

0 comments on commit 28fa4d3

Please sign in to comment.