You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(robottelo issue)
Currently test runs with parametrized tests using xdist are failing with msgs like:
collecting 0 items / 3 errors
==================================== ERRORS ====================================
_____________________________ ERROR collecting gw1 _____________________________
Different tests were collected between gw0 and gw1. The difference is:
This is due to random data generated inside parametrize. We should probably use the same hash seed across different workers. More info here: pytest-dev/pytest#1075
The text was updated successfully, but these errors were encountered:
Apart from using the same hash seed we can stop sending random data in test names - instead of test_positive_create[dfh7yt94hf9] introduce names for datafactory values, so tests will always be named like test_positive_create[alphanumeric], test_positive_create[utf-8] etc. That's even better naming and it will also avoid encountering such issue.
I like your suggestion @abalakh and it does make it easier to see what type of data was passed (the actual value can always be gotten by looking at logs, if needed)
Issue by abalakh
Monday Feb 19, 2018 at 12:34 GMT
Originally opened as abalakh/airgun#22
(robottelo issue)
Currently test runs with parametrized tests using xdist are failing with msgs like:
This is due to random data generated inside
parametrize
. We should probably use the same hash seed across different workers. More info here: pytest-dev/pytest#1075The text was updated successfully, but these errors were encountered: