aboutsummaryrefslogtreecommitdiff
path: root/src/test/rpc_wallet_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-04-23 08:05:05 +0200
committerWladimir J. van der Laan <[email protected]>2014-04-23 08:05:05 +0200
commited671005654136b728768a423c8ac7f4e1ce637f (patch)
treede1cd7fa944c49a2baaf2805f18776de2a181892 /src/test/rpc_wallet_tests.cpp
parentMerge pull request #4042 (diff)
downloaddiscoin-ed671005654136b728768a423c8ac7f4e1ce637f.tar.xz
discoin-ed671005654136b728768a423c8ac7f4e1ce637f.zip
Add required locks in tests
Unit tests with DEBUG_LOCKORDER were running into assertions.
Diffstat (limited to 'src/test/rpc_wallet_tests.cpp')
-rw-r--r--src/test/rpc_wallet_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rpc_wallet_tests.cpp b/src/test/rpc_wallet_tests.cpp
index af34e496e..eea249b11 100644
--- a/src/test/rpc_wallet_tests.cpp
+++ b/src/test/rpc_wallet_tests.cpp
@@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE(rpc_wallet)
// Test RPC calls for various wallet statistics
Value r;
- LOCK(pwalletMain->cs_wallet);
+ LOCK2(cs_main, pwalletMain->cs_wallet);
BOOST_CHECK_NO_THROW(CallRPC("listunspent"));
BOOST_CHECK_THROW(CallRPC("listunspent string"), runtime_error);