Fix failing test to include all destroyed targets
Unless I'm missing something, the entire tree should be deleted in this test case because A is the ancestor for the entire tree.
This commit is contained in:
parent
0f1893222a
commit
c651d0ab9b
|
@ -33,15 +33,21 @@ func TestDestroyTarget(t *testing.T) {
|
|||
destroySpecificTargets(
|
||||
t, []string{"A"}, true, /*targetDependents*/
|
||||
func(urns []resource.URN, deleted map[resource.URN]bool) {
|
||||
// when deleting 'A' we expect A, B, C, E, F, and K to be deleted
|
||||
// when deleting 'A' we expect A, B, C, D, E, F, G, H, I, J, K, and L to be deleted
|
||||
names := complexTestDependencyGraphNames
|
||||
assert.Equal(t, map[resource.URN]bool{
|
||||
pickURN(t, urns, names, "A"): true,
|
||||
pickURN(t, urns, names, "B"): true,
|
||||
pickURN(t, urns, names, "C"): true,
|
||||
pickURN(t, urns, names, "D"): true,
|
||||
pickURN(t, urns, names, "E"): true,
|
||||
pickURN(t, urns, names, "F"): true,
|
||||
pickURN(t, urns, names, "G"): true,
|
||||
pickURN(t, urns, names, "H"): true,
|
||||
pickURN(t, urns, names, "I"): true,
|
||||
pickURN(t, urns, names, "J"): true,
|
||||
pickURN(t, urns, names, "K"): true,
|
||||
pickURN(t, urns, names, "L"): true,
|
||||
}, deleted)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue