test: wait longer, add startup_delay option

This commit is contained in:
tecnovert
2026-05-29 12:05:58 +02:00
parent 6b4b97376b
commit 248b8046b1
4 changed files with 34 additions and 25 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2022-2024 tecnovert
# Copyright (c) 2024 The Basicswap developers
# Copyright (c) 2024-2026 The Basicswap developers
# Distributed under the MIT software license, see the accompanying
# file LICENSE.txt or http://www.opensource.org/licenses/mit-license.php.
@@ -63,7 +63,7 @@ def waitForServer(delay_event, port, wait_for=20):
if delay_event.is_set():
raise ValueError("Test stopped.")
try:
delay_event.wait(1)
delay_event.wait(1.0)
_ = read_json_api(port)
return
except Exception as e: