Commit 9d0bd779 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

gh: more await

parent b3bd48e1
Pipeline #15358 failed with stage
in 5 minutes and 27 seconds
......@@ -272,11 +272,11 @@ class GhTests(TestCase):
async def test_push_gitlab_master(self):
"""Test sync after pushing to gitlab on master."""
self.push_gitlab('master')
await self.push_gitlab('master')
async def test_push_gitlab_devel(self):
"""Test sync after pushing to gitlab on devel."""
self.push_gitlab('devel')
await self.push_gitlab('devel')
async def test_branch_github(self):
"""Test sync after creating or deleting a branch on github."""
......@@ -385,7 +385,7 @@ class GhTests(TestCase):
LOGGER.debug('test_pr: 7')
self.assertTrue([c.body for c in pr_master.get_issue_comments() if not_accepted_string in c.body])
LOGGER.debug('test_pr: 8')
await sleep(15)
await sleep(60)
LOGGER.debug('test_pr: 9')
self.assertIn(f'pr/{pr_master.number}', [b.name for b in self.gitlab.branches.list()])
LOGGER.debug('test_pr: 10')
......@@ -418,5 +418,5 @@ class GhTests(TestCase):
pr_login="foo",
pr_number=pr.number)
self.assertEqual(response.status_code, 200)
await sleep(15)
await sleep(60)
self.assertNotIn(f'pr/{pr.number}', [b.name for b in self.gitlab.branches.list()])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment