-
Notifications
You must be signed in to change notification settings - Fork 14.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
[AIRFLOW-5142] Fixed flaky cassandra test #5758
Conversation
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.
I still don't exactly understand why was that flaky
The data structure that does not store the order of the elements. Sometimes last element has the value A and other times the value B. |
Yeah. It's all explained in discussion here: #5753 and https://stackoverflow.com/a/39980744/1849502 - we have two method calls and they are sometimes in different order because of race and the test originally checked only last call (that's how assert_called_with works). It seems it was only problem in python 3.5 (not sure why it passed originally ) because there it's not the "last" call but the one which is determined by the dictionary order as pointed by @mik-laj . Now the test correctly tests if the two upload methods were called in any order. |
(cherry picked from commit fc6967b)
(cherry picked from commit fc6967b)
Make sure you have checked all steps below.
Jira
Description
Tests
Commits
Documentation
Code Quality
flake8