Skip to content

Commit

Permalink
fixup test
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Jan 16, 2024
1 parent b159940 commit 3e2ba10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/functional/wallet_upgradewallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
assert_equal,
assert_greater_than_or_equal,
assert_is_hex_string,
assert_raises_rpc_error,
)


Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3e2ba10

Please sign in to comment.