From 329ba44f132b3479450e971cb3161dc17184cfef Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Mon, 8 Jul 2024 10:51:21 +0000 Subject: [PATCH] minor testing fixes --- mmgen/proto/eth/daemon.py | 2 +- test/cmdtest_py_d/ct_regtest.py | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/mmgen/proto/eth/daemon.py b/mmgen/proto/eth/daemon.py index cc89c382..81b9fc7a 100755 --- a/mmgen/proto/eth/daemon.py +++ b/mmgen/proto/eth/daemon.py @@ -91,7 +91,7 @@ class parity_daemon(openethereum_daemon): exec_fn = 'parity' class geth_daemon(ethereum_daemon): - # upgrade to 1.14.0/1.14.3 fails: + # upgrade to 1.14.0/1.14.6 fails: # mempool deadlock in dev mode: "transaction indexing is in progress" # https://github.com/ethereum/go-ethereum/issues/29475 # offending commit (via git bisect): 0a2f33946b95989e8ce36e72a88138adceab6a23 diff --git a/test/cmdtest_py_d/ct_regtest.py b/test/cmdtest_py_d/ct_regtest.py index e80a70c0..e26b3b20 100755 --- a/test/cmdtest_py_d/ct_regtest.py +++ b/test/cmdtest_py_d/ct_regtest.py @@ -34,6 +34,7 @@ from ..include.common import ( cfg, imsg, omsg, + ok, stop_test_daemons, joinpath, silence, @@ -2066,12 +2067,14 @@ class CmdTestRegtest(CmdTestBase,CmdTestShared): 'contains no unused addresses of address type' ) def stop(self): + self.spawn('', msg_only=True) if cfg.no_daemon_stop: - self.spawn('',msg_only=True) - msg_r('(leaving daemon running by user request)') - return 'ok' + msg_r('(leaving regtest daemon running by user request)') + imsg('') else: - return self.spawn('mmgen-regtest',['stop']) + stop_test_daemons(self.proto.network_id, remove_datadir=True) + ok() + return 'ok' class CmdTestRegtestBDBWallet(CmdTestRegtest): bdb_wallet = True