Skip to content

Commit

Permalink
Improves the replation test.
Browse files Browse the repository at this point in the history
Content creation is asyncronous and the test needs to wait for it to be created.

[noissue]
  • Loading branch information
dkliban committed Mar 21, 2024
1 parent eeeb94f commit 67b8d5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pulp_gem/tests/functional/api/test_replicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def test_replication(
domain_factory,
bindings_cfg,
upstream_pulp_api_client,
monitor_task,
monitor_task_group,
pulp_settings,
add_to_cleanup,
Expand All @@ -31,9 +32,10 @@ def test_replication(

# Add stuff to it
repository = gem_repository_factory(pulp_domain=source_domain.name)
gem_content_api_client.create(
content_response = gem_content_api_client.create(
file=gem_content_artifact, repository=repository.pulp_href, pulp_domain=source_domain.name
)
monitor_task(content_response.task)
publication = gem_publication_factory(
pulp_domain=source_domain.name, repository=repository.pulp_href
)
Expand Down

0 comments on commit 67b8d5a

Please sign in to comment.