mapper: allow unchanged self in the full-update ping test

Updates #3518
This commit is contained in:
Kristoffer Dalby
2026-10-07 09:34:52 +00:00
parent 2cd82ceb0c
commit 48046dc9c5
+3 -1
View File
@@ -1218,7 +1218,9 @@ func TestBatcherPingSurvivesFullUpdate(t *testing.T) {
}
isFull := func(r *tailcfg.MapResponse) bool {
return r.Node != nil && r.DERPMap != nil && len(r.Peers) > 0
// An unchanged self may be omitted for this connection, while
// the full peer list and DERP map still distinguish the full.
return r.DERPMap != nil && len(r.Peers) > 0
}
frames := collect(target.ch)