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

Fix unstability in test_default_sorting_with_fts #7152

Conversation

kozlovsky
Copy link
Contributor

@kozlovsky kozlovsky commented Nov 8, 2022

The test test_default_sorting_with_fts currently works unstable because the torrent_date attribute of the TorrentMetadata class got unstable values that are too close to each other, and this affects the sort order of test results. In this PR, I specify "stable" torrent creation dates that are not too close to each other and the current time, so they do not randomly affect the result sort order.

@kozlovsky kozlovsky requested review from a team and xoriole and removed request for a team November 8, 2022 13:57
@kozlovsky kozlovsky force-pushed the fix/unstability_in_test_default_sorting_with_fts branch from 732244c to 52f8cc1 Compare November 10, 2022 07:37
@kozlovsky kozlovsky merged commit 2792d43 into Tribler:main Nov 10, 2022
@kozlovsky kozlovsky deleted the fix/unstability_in_test_default_sorting_with_fts branch November 10, 2022 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants