mirror of
https://github.com/basicswap/basicswap.git
synced 2025-12-04 14:37:07 +01:00
tests: Run more tests in ci.
This commit is contained in:
@@ -230,6 +230,14 @@ def wait_for_none_active(delay_event, port, wait_for=30):
|
||||
raise ValueError('wait_for_none_active timed out.')
|
||||
|
||||
|
||||
def abandon_all_swaps(delay_event, swap_client) -> None:
|
||||
logging.info('abandon_all_swaps')
|
||||
for bid in swap_client.listBids(sent=True):
|
||||
swap_client.abandonBid(bid[2])
|
||||
for bid in swap_client.listBids(sent=False):
|
||||
swap_client.abandonBid(bid[2])
|
||||
|
||||
|
||||
def waitForNumOffers(delay_event, port, offers, wait_for=20):
|
||||
for i in range(wait_for):
|
||||
if delay_event.is_set():
|
||||
|
||||
Reference in New Issue
Block a user