Skip to content

Commit

Permalink
fix: small sleep to stabilise project creation in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
studioj committed Dec 26, 2023
1 parent 9e8f69c commit 79bf482
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import re
import string
import sys
import time
import unittest
from time import sleep
from typing import Any
Expand Down Expand Up @@ -255,6 +256,7 @@ def _create_project(
for _ in range(create_attempts):
try:
if self.jira_admin.create_project(project_key, project_name):
time.sleep(1)
break
except JIRAError as e:
if "A project with that name already exists" not in str(e):
Expand Down

0 comments on commit 79bf482

Please sign in to comment.