diff --git a/conftest.py b/conftest.py index 95fa6be4..72e5ba71 100644 --- a/conftest.py +++ b/conftest.py @@ -732,6 +732,12 @@ class Repo: raise TimeoutError("No response for repo %s over 60s" % repo_name) time.sleep(1) + # wait for the branches (which should have been copied over) to be visible + while not s.get(f'{repo_url}/branches').json(): + if time.time() > limit: + raise TimeoutError("No response for repo %s over 60s" % repo_name) + time.sleep(1) + return Repo(s, repo_name, self._repos) def get_pr(self, number):