diff options
Diffstat (limited to 'pkg/server')
-rw-r--r-- | pkg/server/server_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/server/server_test.go b/pkg/server/server_test.go index 43856bef..24dcdf95 100644 --- a/pkg/server/server_test.go +++ b/pkg/server/server_test.go @@ -71,8 +71,11 @@ func TestStop(t *testing.T) { }, } err = s.AddPeer(context.Background(), &api.AddPeerRequest{Peer: p}) - err = s.AddPeer(context.Background(), &api.AddPeerRequest{}) assert.Nil(err) + + err = s.AddPeer(context.Background(), &api.AddPeerRequest{}) + assert.Error(err) + s.StopBgp(context.Background(), &api.StopBgpRequest{}) } |