-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix Fifo queue delivers duplicate message(s) #3538
Conversation
- move deduplication time to constants - make tests parameterized - update tests as per review comments
increase deduplication mock config to account for delays
@BeyondEvil can you please help me out with the CI failure? I have run the tests in my machine using python 2.7, 3.6, 3.7, and 3.8 and all the tests are passing. I am having a hard time figuring out why it is failing in Travis. |
Hey @irahulranjan, the test are all failing in server mode, where Moto is run in a standalone Docker container. I don't really see how we would be able to test this inside a Docker container, so we can skip it in server mode like this: |
@bblommers Thanks for the help. |
Not exactly sure how the docker setup works, but you could change the DEDUPLICATION_TIME_IN_SECONDS = os.getenv('DEDUPLICATION_TIME_IN_SECONDS', 300) Then the test can set the env var to Hope that makes sense @irahulranjan @bblommers Edit: Here you can add Also, this is weird. It's first set to |
@BeyondEvil True, there are ways around it, but none of them pretty. The weird travis.yml-notation is not setting the variable, but is used as a list of configurations. Travis will execute the tests once per configuration option (per python-version). That's why the list of test suites is executed twice per language, one with the env var set to True, one set to False. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @irahulranjan!
Fair enough.
True. It's already merged. But does moto support some type of configuration framework? I guess something like that could've been leveraged in a scenario like this.
Oh, really. Wow, that is weird. 😅 Thanks for taking the time to explain. 🙏 |
No, not yet! I agree that would be useful, and will become more useful as we're getting more config options. One day.. 🤞 |
This is now part of moto >= 1.3.16.dev181 |
No description provided.