mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-23 03:49:25 +00:00
test: Fix RESET_TEST=false
This commit is contained in:
parent
65183133d8
commit
18974d9458
2 changed files with 6 additions and 3 deletions
|
@ -1299,7 +1299,7 @@ def main():
|
||||||
with open(config_path, 'w') as fp:
|
with open(config_path, 'w') as fp:
|
||||||
json.dump(settings, fp, indent=4)
|
json.dump(settings, fp, indent=4)
|
||||||
|
|
||||||
logger.info('Done.')
|
logger.info(f'Done. Coin {add_coin} successfully added.')
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
logger.info('With coins: %s', ', '.join(with_coins))
|
logger.info('With coins: %s', ', '.join(with_coins))
|
||||||
|
|
|
@ -120,8 +120,11 @@ class Test(unittest.TestCase):
|
||||||
|
|
||||||
random.seed(time.time())
|
random.seed(time.time())
|
||||||
|
|
||||||
logging.info('Preparing %d nodes.', NUM_NODES)
|
if os.path.exists(test_path) and not RESET_TEST:
|
||||||
prepare_nodes(NUM_NODES, 'bitcoin,monero', True, {'min_sequence_lock_seconds': 60}, PORT_OFS)
|
logging.info(f'Continuing with existing directory: {test_path}')
|
||||||
|
else:
|
||||||
|
logging.info('Preparing %d nodes.', NUM_NODES)
|
||||||
|
prepare_nodes(NUM_NODES, 'bitcoin,monero', True, {'min_sequence_lock_seconds': 60}, PORT_OFS)
|
||||||
|
|
||||||
signal.signal(signal.SIGINT, lambda signal, frame: cls.signal_handler(cls, signal, frame))
|
signal.signal(signal.SIGINT, lambda signal, frame: cls.signal_handler(cls, signal, frame))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue