ipn/ipnlocal: update PeerByID to return SelfNode and rename it to NodeByID (#16096)
Like NodeByKey, add an if stmt for checking the NodeId is SelfNode. Updates #16052 Signed-off-by: Jerry Yan <792602257@qq.com>
This commit is contained in:
@@ -1005,7 +1005,7 @@ func TestUpdateNetmapDelta(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, want := range wants {
|
||||
gotv, ok := b.currentNode().PeerByID(want.ID)
|
||||
gotv, ok := b.currentNode().NodeByID(want.ID)
|
||||
if !ok {
|
||||
t.Errorf("netmap.Peer %v missing from b.profile.Peers", want.ID)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user