Skip to content

Commit

Permalink
allow CI servers more time to bring up test server instances
Browse files Browse the repository at this point in the history
  • Loading branch information
baentsch committed Feb 16, 2024
1 parent b937e07 commit 1d5732d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def start_server(ossl, test_artifacts_dir, sig_alg, worker_id):
break
else:
server_start_attempt += 1
time.sleep(2)
print("Server not responding... Going around.")
# be more lenient for slow CI servers
time.sleep(5)
server_port = str(server_info.connections()[0].laddr.port)

# Check SERVER_START_ATTEMPTS times to see
Expand All @@ -98,7 +100,9 @@ def start_server(ossl, test_artifacts_dir, sig_alg, worker_id):
break
else:
server_start_attempt += 1
time.sleep(2)
print("Server not responding... Going around.")
# be more lenient for slow CI servers
time.sleep(5)

if server_start_attempt > SERVER_START_ATTEMPTS:
raise Exception('Cannot start OpenSSL server')
Expand Down

0 comments on commit 1d5732d

Please sign in to comment.