Skip to content

Conversation

@siarheivesialou
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Jan 23, 2024

2024-01-24 13:06:55 UTC Pre-commit check for bc5ffaf has started.
2024-01-24 13:06:57 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-01-24 13:08:01 UTC Build successful.
2024-01-24 13:08:10 UTC Tests are running...
🔴 2024-01-24 14:04:21 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
60089 50810 0 13 9235 31

# shouldn't get any error
result_list = self._read_single_message_no_wait(queue1_url)
assert len(result_list) == 0 or result_list[0]['Body'] == msg_body
# waiting until the message appears in queue1 again
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Проблема была в том, что self._read_single_message_no_wait(queue1_url) могла прочитать как 1, так и 0 сообщений. Тесть падал, когда вычитвалось 1. Фикс - читать, дожидаясь этого сообщения.


self._sqs_api.send_message(queue_url, "bar")
self._sqs_api.purge_queue(queue_url)
for _ in range(20):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Очень редко счётчик успевал упасть до 0. Опытным путём выяснилось, что 20 после таких итераций счётчик будет точно больше 0, а точного значения тут на самом деле и не нужно.

@github-actions
Copy link

github-actions bot commented Jan 23, 2024

2024-01-24 13:11:41 UTC Pre-commit check for bc5ffaf has started.
2024-01-24 13:11:42 UTC Build linux-x86_64-release-asan is running...
🟢 2024-01-24 13:12:50 UTC Build successful.
2024-01-24 13:16:20 UTC Tests are running...
🔴 2024-01-24 14:19:06 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15928 15834 0 26 38 30

@CyberROFL
Copy link
Member

rebase please

@siarheivesialou
Copy link
Contributor Author

rebase please

Rebased, there were no conflicts

@starlinskiy starlinskiy mentioned this pull request Feb 12, 2024
@vitstn vitstn mentioned this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants