change, mapper: distinguish deleted nodes

Updates #3410
This commit is contained in:
Kristoffer Dalby
2026-09-04 10:29:49 +00:00
parent fc6a16fdfc
commit a91c0519c2
6 changed files with 73 additions and 20 deletions
+2
View File
@@ -532,6 +532,8 @@ func TestDeleteNodeReturnsRemovalOnPolicyFailure(t *testing.T) {
require.ErrorIs(t, err, errInjectedPolicyNodeUpdate)
assert.Equal(t, []types.NodeID{nodeID}, c.PeersRemoved,
"a committed deletion must still notify peers and stop the node's session")
assert.Equal(t, []types.NodeID{nodeID}, c.DeletedNodes,
"a committed deletion must identify the session to stop")
_, ok = s.GetNodeByID(nodeID)
assert.False(t, ok, "a committed deletion must remove the in-memory node")