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

Adding a test for both out of order and race condition, fixing GetItem for OOO #45

Conversation

placeybordeaux-remitly
Copy link

Hi! Thanks for the library!

I noticed there was a problem where if the test suite calls out of order from the order that the expectations were set then we'd get different behavior.

This works off of what was added for BatchWriteItem in #16. Note that this could be considered backwards incompatible because the errors that are returned are different, if we are considering the entire list of expectations then we can't necessarily return as nice of errors.

Additionally I suspected that we would be getting a race condition where expectations aren't properly removed. This is fixed by introducing a mutex.

@placeybordeaux-remitly
Copy link
Author

@gusaul are these changes something you'd like to see land in master?

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.

1 participant