diff options
author | lsilva01 <lsilva01@protonmail.com> | 2021-10-30 15:20:35 -0300 |
---|---|---|
committer | lsilva01 <lsilva01@protonmail.com> | 2021-11-09 12:47:32 -0300 |
commit | aa1a4c920495076ed5b5e3f05cb64d644bab6810 (patch) | |
tree | efe4e2b2da3e5b68018854848a75595107627db3 /test | |
parent | 871e64d22f6db8f2e1b312227354aa172a0347c6 (diff) |
Add file validation to savemempool RPC test
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/mempool_persist.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/mempool_persist.py b/test/functional/mempool_persist.py index 71a132dca3..4dae2d9042 100755 --- a/test/functional/mempool_persist.py +++ b/test/functional/mempool_persist.py @@ -149,8 +149,9 @@ class MempoolPersistTest(BitcoinTestFramework): mempooldat1 = os.path.join(self.nodes[1].datadir, self.chain, 'mempool.dat') self.log.debug("Remove the mempool.dat file. Verify that savemempool to disk via RPC re-creates it") os.remove(mempooldat0) - self.nodes[0].savemempool() + result0 = self.nodes[0].savemempool() assert os.path.isfile(mempooldat0) + assert_equal(result0['filename'], mempooldat0) self.log.debug("Stop nodes, make node1 use mempool.dat from node0. Verify it has 6 transactions") os.rename(mempooldat0, mempooldat1) |