diff options
Diffstat (limited to 'server/server_test.go')
-rw-r--r-- | server/server_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/server_test.go b/server/server_test.go index 3c343b9e..8f5fcc4d 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -185,9 +185,11 @@ func TestNumGoroutineWithAddDeleteNeighbor(t *testing.T) { } func newPeerandInfo(myAs, as uint32, address string, rib *table.TableManager) (*Peer, *table.PeerInfo) { + nConf := &config.Neighbor{Config: config.NeighborConfig{PeerAs: as, NeighborAddress: address}} + config.SetDefaultNeighborConfigValues(nConf, myAs) p := NewPeer( &config.Global{Config: config.GlobalConfig{As: myAs}}, - &config.Neighbor{Config: config.NeighborConfig{PeerAs: as, NeighborAddress: address}}, + nConf, rib, &table.RoutingPolicy{}) for _, f := range rib.GetRFlist() { |