Skip to content

Commit 1d135a7

Browse files
committed
fix(prompt): update assertion in Test_promptScreenPartialResourceFetcher_FetchData
- Changed assertion from assert.Equal to assert.ElementsMatch to ensure that the order of elements in the fetched data does not affect the test outcome.
1 parent b323823 commit 1d135a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cli/terraform_fetcher_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2236,6 +2236,6 @@ func Test_promptScreenPartialResourceFetcher_FetchData(t *testing.T) {
22362236

22372237
data, err := fetcher.FetchData(context.Background())
22382238
assert.NoError(t, err)
2239-
assert.Equal(t, expectedData, data)
2239+
assert.ElementsMatch(t, expectedData, data)
22402240
})
22412241
}

0 commit comments

Comments
 (0)