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 test that fail on rerun due to expecting exact IDs #14943

Merged

Conversation

TheRealHaoLiu
Copy link
Member

@TheRealHaoLiu TheRealHaoLiu commented Mar 1, 2024

SUMMARY

example failure for test_project_list_ordering_with_duplicate_names on rerun

    assert project_ids[0] == project_ids[1] == project_ids[2] == [1, 2, 3, 4, 5]
AssertionError: assert [16, 17, 18, 19, 20] == [1, 2, 3, 4, 5]

example failure for test_project_list_ordering_by_name on rerun

    assert project_names == expected_names and project_ids == expected_ids
AssertionError: assert (['shared proj...lice project'] == ['shared proj...lice project']
  
  Use -v to get more diff and [18, 17, 16] == [3, 2, 1]
ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API
AWX VERSION
awx: 23.9.1.dev9+g8cf2861491
ADDITIONAL INFORMATION

due to expecting exact IDs
@TheRealHaoLiu TheRealHaoLiu merged commit b7b7bfa into ansible:devel Mar 1, 2024
22 of 23 checks passed
@TheRealHaoLiu TheRealHaoLiu deleted the fix-test-that-require-exact-id branch March 1, 2024 17:37
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
Fix test that fail on rerun

due to expecting exact IDs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants