Skip to content

Commit c107e87

Browse files
committed
chore: fix flaky test
1 parent e9f378e commit c107e87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

unit_tests/sources/declarative/resolvers/test_config_components_resolver.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ def test_dynamic_streams_read_with_config_components_resolver(
203203
]
204204

205205
assert len(actual_catalog.streams) == len(expected_stream_names)
206-
assert [stream.name for stream in actual_catalog.streams] == expected_stream_names
206+
# Use set comparison to avoid relying on deterministic ordering
207+
assert set(stream.name for stream in actual_catalog.streams) == set(expected_stream_names)
207208
assert len(records) == len(expected_stream_names)
208-
assert [record.stream for record in records] == expected_stream_names
209+
# Use set comparison to avoid relying on deterministic ordering
210+
assert set(record.stream for record in records) == set(expected_stream_names)

0 commit comments

Comments
 (0)