aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-05-11 18:19:56 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-07-09 13:07:17 +0200
commitfa28a618972911239a119248ab1194702a5c36d8 (patch)
treeef19680f4d291690862f06e1e66cb74bec64e4fa
parentc4a44186d816716f5918fd23464a51033f208b71 (diff)
test: Add smoke test to check that wallets are flushed by default
-rwxr-xr-xtest/functional/wallet_dump.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/wallet_dump.py b/test/functional/wallet_dump.py
index ba1e494d9a..6bfb468823 100755
--- a/test/functional/wallet_dump.py
+++ b/test/functional/wallet_dump.py
@@ -202,5 +202,10 @@ class WalletDumpTest(BitcoinTestFramework):
result = self.nodes[0].getaddressinfo(multisig_addr)
assert result['ismine']
+ self.log.info('Check that wallet is flushed')
+ with self.nodes[0].assert_debug_log(['Flushing wallet.dat'], timeout=20):
+ self.nodes[0].getnewaddress()
+
+
if __name__ == '__main__':
WalletDumpTest().main()