mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-26 16:26:50 +09:00
mapper: allow unchanged self in the full-update ping test
Updates #3518
This commit is contained in:
1 parent
74d287d7bf
commit
6875c4bc8a
1 file changed
+3
-1
@@ -1218,7 +1218,9 @@ func TestBatcherPingSurvivesFullUpdate(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isFull := func(r *tailcfg.MapResponse) bool {
|
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)
|
frames := collect(target.ch)
|
||||||
|
|||||||
Reference in new issue
Block a user