Skip to content

Commit

Permalink
Added gribi client stop post switchover prior to reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-gunasekaran-arista committed May 3, 2024
1 parent 50971e0 commit f2ed655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ func TestRouteAdditionDuringFailover(t *testing.T) {
// SINGLE_PRIMARY mode, with FIB ACK requested. Specify gRIBI as the leader.
// Check vars for WithInitialElectionID.

client.Stop(t)
t.Log("Reconnect gRIBi client after switchover on new master.")
client.Connection().WithStub(gribic).WithPersistence().WithInitialElectionID(eID.Low, eID.High).
WithFIBACK().WithRedundancyMode(fluent.ElectedPrimaryClient)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ func TestRouteRemovalDuringFailover(t *testing.T) {
// SINGLE_PRIMARY mode, with FIB ACK requested. Specify gRIBI as the leader.
// Check vars for WithInitialElectionID.

client.Stop(t)
t.Log("Reconnect gRIBi client after switchover on new master.")
client.Connection().WithStub(gribic).WithPersistence().WithInitialElectionID(eID.Low, eID.High).
WithFIBACK().WithRedundancyMode(fluent.ElectedPrimaryClient)
Expand Down

0 comments on commit f2ed655

Please sign in to comment.