Skip to content

Commit 2467e7a

Browse files
committed
fix tests
1 parent 6ab37d0 commit 2467e7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/moduletest/graph/transform_state_cleanup.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package graph
55

66
import (
7-
"maps"
87
"slices"
98

109
"github.com/hashicorp/terraform/internal/addrs"
@@ -126,7 +125,7 @@ func (t *TestStateCleanupTransformer) Transform(g *terraform.Graph) error {
126125
// Depth-first traversal to connect the cleanup nodes based on their dependencies.
127126
// If an edge would create a cycle, we skip it.
128127
visited := make(map[string]bool)
129-
for node := range maps.Values(cleanupMap) {
128+
for _, node := range arr {
130129
t.depthFirstTraverse(g, node, visited, cleanupMap, depStateKeys)
131130
}
132131
return nil

0 commit comments

Comments
 (0)