Skip to content

Commit

Permalink
Fix nil dereference (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-dennis authored Sep 15, 2023
1 parent e67790c commit f1448a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ func TestRouteRemovalDuringFailover(t *testing.T) {
var flushRes, wantFlushRes *gpb.FlushResponse
t.Log("Execute gRIBi flush and master switchover concurrently.")
go func(msg string) {
flushRes, err := gribi.Flush(client, eID, deviations.DefaultNetworkInstance(dut))
flushRes, err = gribi.Flush(client, eID, deviations.DefaultNetworkInstance(dut))
if err != nil {
t.Logf("Unexpected error from flush, got: %v, %v", err, flushRes)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ func TestRouteRemovalDuringFailover(t *testing.T) {
var flushRes, wantFlushRes *gpb.FlushResponse
t.Log("Execute gRIBi flush and master switchover concurrently.")
go func(msg string) {
flushRes, err := gribi.Flush(client, eID, deviations.DefaultNetworkInstance(dut))
flushRes, err = gribi.Flush(client, eID, deviations.DefaultNetworkInstance(dut))
if err != nil {
t.Logf("Unexpected error from flush, got: %v, %v", err, flushRes)
}
Expand Down

0 comments on commit f1448a6

Please sign in to comment.