Skip to content

Commit

Permalink
fix lint error: minor fix to catch the error from .bgpServer.Stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
murali-reddy committed Jul 17, 2020
1 parent 031a992 commit bb35b9a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/controllers/routing/network_routes_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,11 @@ func Test_routeReflectorConfiguration(t *testing.T) {

err := testcase.nrc.startBgpServer()
if err == nil {
defer testcase.nrc.bgpServer.Stop()
defer func() {
if err := testcase.nrc.bgpServer.Stop(); err != nil {
t.Fatalf("failed to stop BGP server : %s", err)
}
}()
}

if testcase.expectedBgpToStart {
Expand Down

0 comments on commit bb35b9a

Please sign in to comment.