Skip to content

Commit 7c9952c

Browse files
committed
fix: ignore order when comparing thread results
1 parent b4704b4 commit 7c9952c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/e2e/idempotency/test_idempotency_dynamodb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,5 @@ def test_idempotent_function_thread_safety(function_thread_safety_handler_fn_arn
130130
assert function_thread["exception"] is None
131131
assert function_thread["output"] is not None
132132

133-
assert first_execution_response == second_execution_response
133+
# we use set() here because we want to compare the elements regardless of their order in the array
134+
assert set(first_execution_response) == set(second_execution_response)

0 commit comments

Comments
 (0)