From 3e2ba10d61afac38503d00a7d5bc01bf9e381d46 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Wed, 17 Jan 2024 01:28:50 +0700 Subject: [PATCH] fixup test --- test/functional/wallet_upgradewallet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/functional/wallet_upgradewallet.py b/test/functional/wallet_upgradewallet.py index 2ada36b023fe09..5b2f79fc473165 100755 --- a/test/functional/wallet_upgradewallet.py +++ b/test/functional/wallet_upgradewallet.py @@ -17,6 +17,7 @@ assert_equal, assert_greater_than_or_equal, assert_is_hex_string, + assert_raises_rpc_error, ) @@ -126,7 +127,8 @@ def run_test(self): assert_equal('hdseedid' in wallet.getwalletinfo(), False) # calling upgradewallet with explicit version number # should return nothing if successful - assert_equal(wallet.upgradewallet(120200), False) + assert_raises_rpc_error(-4, "You should use upgradetohd RPC to upgrade non-HD wallet to HD", wallet.upgradewallet, 120200) + assert 'hdchainid' not in wallet.getwalletinfo() assert_equal(wallet.upgradetohd(), True)