test: check that creating a wallet does not log version info

Github-Pull: #32553
Rebased-From: 4b2cd0b41f
This commit is contained in:
Ava Chow
2025-05-18 11:58:40 -07:00
committed by fanquake
parent e685b4eca2
commit 6c0f26d3bd

View File

@@ -189,7 +189,8 @@ class CreateWalletTest(BitcoinTestFramework):
})
self.log.info("Check that the version number is being logged correctly")
node.createwallet("version_check")
with node.assert_debug_log(expected_msgs=[], unexpected_msgs=["Last client version = ", "Wallet file version = "]):
node.createwallet("version_check")
wallet = node.get_wallet_rpc("version_check")
wallet_version = wallet.getwalletinfo()["walletversion"]
client_version = node.getnetworkinfo()["version"]