Small refactoring; Split horizon loop break.

This commit is contained in:
Milos Gajdos
2019-09-13 18:46:24 +01:00
parent d72e91fb38
commit 323a72be34
5 changed files with 93 additions and 70 deletions

View File

@@ -117,6 +117,12 @@ func TestNodes(t *testing.T) {
t.Errorf("Expected to find %s node", node.Id())
}
}
// this is a leaf node
id := "peer11"
if nodePeer := node.GetPeerNode(id); nodePeer == nil {
t.Errorf("Expected to find %s node", id)
}
}
func collectPeerIds(peer Node, ids map[string]bool) map[string]bool {