Skip to content

Commit

Permalink
update test sleep method
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeHiggins2 committed Feb 6, 2025
1 parent 6e5022f commit e6f0ade
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/foreman/ui/test_activationkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,13 @@ def test_positive_add_docker_repo_cv(session, module_org, module_target_sat):
content_view = module_target_sat.api.ContentView(
composite=False, organization=module_org, repository=[repo]
).create()
sleep(5)
module_target_sat.wait_for_tasks(
search_query='Actions::Katello::Repository::MetadataGenerate'
f' and resource_id = {repo.id}'
' and resource_type = Katello::Repository',
max_tries=6,
search_rate=10,
)
content_view.publish()
cvv = content_view.read().version[0].read()
cvv.promote(data={'environment_ids': lce.id, 'force': False})
Expand Down

0 comments on commit e6f0ade

Please sign in to comment.