Skip to content

Commit 68018e4

Browse files
committed
test: Avoid excessive locking of cs_wallet
1 parent 7986faf commit 68018e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wallet/test/psbt_wallet_tests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
BOOST_FIXTURE_TEST_SUITE(psbt_wallet_tests, WalletTestingSetup)
1515

1616
static void import_descriptor(CWallet& wallet, const std::string& descriptor)
17+
EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
1718
{
18-
LOCK(wallet.cs_wallet);
19+
AssertLockHeld(wallet.cs_wallet);
1920
FlatSigningProvider provider;
2021
std::string error;
2122
std::unique_ptr<Descriptor> desc = Parse(descriptor, provider, error, /* require_checksum=*/ false);

0 commit comments

Comments
 (0)