Skip to content

Commit

Permalink
Merge pull request #955 from cloudnativelabs/fix-build-break
Browse files Browse the repository at this point in the history
fix lint error: minor fix to catch the error from .bgpServer.Stop()
  • Loading branch information
aauren committed Jul 17, 2020
2 parents 031a992 + bb35b9a commit 3ab31ab
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 3ab31ab

Please sign in to comment.