Skip to content

Commit c55ddfe

Browse files
committed
add sorting statement
1 parent 6bfc1e2 commit c55ddfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/aws/services/sqs/test_sqs_backdoor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ def test_fifo_list_messages_with_invisible_messages(
282282
messages: list[dict] = doc["ReceiveMessageResponse"]["ReceiveMessageResult"]["Message"]
283283
assert len(messages) == 4
284284
# there are no clear sorting rules in this scenario (fifo queues, invisible, + the way messages are collected)
285+
messages.sort(key=lambda k: k["Body"])
285286
assert messages[0]["Body"] == "message-1"
286287
assert messages[1]["Body"] == "message-2"
287288
assert messages[2]["Body"] == "message-3"

0 commit comments

Comments
 (0)