Skip to content

Commit 7679b29

Browse files
committed
More tries for port checks during test
1 parent 1c8e0ad commit 7679b29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, options, port=8090):
7171
self.port = port
7272
self.options = options.split()
7373

74-
for tries in range(5):
74+
for tries in range(10):
7575
if port_in_use(port):
7676
logger.warning(
7777
f"Port {port} is active. Tests may fail. Trying again"
@@ -111,7 +111,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
111111
def send(self, via, markdown_file):
112112
# Wait some time to ensure the server has launched
113113
# TODO: find a better way: signal? return code? daemon?
114-
for tries in range(5):
114+
for tries in range(10):
115115
if port_in_use(self.port):
116116
break
117117
else:

0 commit comments

Comments
 (0)