mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-10-18 13:21:19 +02:00
fix lint error: minor fix to catch the error from .bgpServer.Stop()
This commit is contained in:
parent
031a9926d6
commit
bb35b9ad2e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user