summaryrefslogtreecommitdiffhomepage
path: root/server/server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/server_test.go')
-rw-r--r--server/server_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/server_test.go b/server/server_test.go
index 46ef4be3..c9f142f1 100644
--- a/server/server_test.go
+++ b/server/server_test.go
@@ -138,4 +138,9 @@ func TestMonitor(test *testing.T) {
assert.Equal(b.PathList[0].GetNlri().String(), "10.0.0.0/24")
assert.Equal(b.PathList[0].IsWithdraw, true)
+ if _, err := t.AddPath("", []*table.Path{table.NewPath(nil, bgp.NewIPAddrPrefix(24, "10.0.0.0"), true, attrs, time.Now(), false)}); err != nil {
+ log.Fatal(err)
+ }
+ //stop the watcher still having an item.
+ w.Stop()
}