Remove dependent connections in moved-target deletion fixture
This commit is contained in:
@@ -508,6 +508,14 @@ func TestCanonicalAIAdmissionAndLifecycle(t *testing.T) {
|
|||||||
model.Tombstones[node] = 2
|
model.Tombstones[node] = 2
|
||||||
model.TombstoneOwners[node] = child
|
model.TombstoneOwners[node] = child
|
||||||
delete(model.Elements, node)
|
delete(model.Elements, node)
|
||||||
|
for id, element := range model.Elements {
|
||||||
|
if element["structure"] == "connection" && (element["source"].(map[string]any)["elementId"] == node || element["target"].(map[string]any)["elementId"] == node) {
|
||||||
|
model.DeadRecords[id] = element
|
||||||
|
model.Tombstones[id] = modelInt(element["incarnation"])
|
||||||
|
model.TombstoneOwners[id] = modelString(element["ownerCanvasId"])
|
||||||
|
delete(model.Elements, id)
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
execute(doomed["run_id"].(string))
|
execute(doomed["run_id"].(string))
|
||||||
if result := call("GET", base(child)+"/ai/runs/"+doomed["run_id"].(string), nil, 200, 0, ""); result["status"] != "cancelled" {
|
if result := call("GET", base(child)+"/ai/runs/"+doomed["run_id"].(string), nil, 200, 0, ""); result["status"] != "cancelled" {
|
||||||
|
|||||||
Reference in New Issue
Block a user