Skip to content

Commit

Permalink
Wait for tasks in test tear down
Browse files Browse the repository at this point in the history
The auto publish tests wasn't waiting properly for cleanup tasks.

[noissue]
  • Loading branch information
dralley committed Apr 26, 2021
1 parent edd3daa commit 1551534
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pulp_rpm/tests/functional/api/test_auto_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def setUp(self):

def tearDown(self):
"""Clean up."""
self.repo_api.delete(self.repo.pulp_href)
self.remote_api.delete(self.remote.pulp_href)
self.distributions_api.delete(self.distribution.pulp_href)
monitor_task(self.repo_api.delete(self.repo.pulp_href).task)
monitor_task(self.remote_api.delete(self.remote.pulp_href).task)
monitor_task(self.distributions_api.delete(self.distribution.pulp_href).task)

def test_01_sync(self):
"""Assert that syncing the repository triggers auto-publish and auto-distribution."""
Expand Down

0 comments on commit 1551534

Please sign in to comment.