Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing redriving from a DEAD to ALIVE queue results in odd counts in the ALIVE queue #263

Open
alexgleith opened this issue Jul 19, 2021 · 2 comments
Assignees

Comments

@alexgleith
Copy link
Contributor

These tests work ok: https://github.com/opendatacube/odc-tools/blob/develop/libs/aws/tests/test_aws.py

But what you can't do is count the number of messages on the destination queue. Doing this would make the test more meaningful.

@whatnick
Copy link
Member

This could be a limitation of moto. One option is trying alternative SQS mocking implementation using localstack. Since moto is an API level 🐒 monkeypatch on boto3 rather than an actual implementation of SQS.

@alexgleith
Copy link
Contributor Author

Yeah, that's what I figure.

I'm not sure it's really worth going to too much trouble about. The tests do test the basic functionality!

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

No branches or pull requests

2 participants