diff options
| author | Russell Yanofsky <[email protected]> | 2017-11-13 21:25:46 -0500 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2018-03-03 10:26:55 -0500 |
| commit | d8a99f65e53019becdd8d2631396012bafb29741 (patch) | |
| tree | 7e873886811beddc9bca0c21d21d3c6fc0d7ede3 /src/qt/test/wallettests.cpp | |
| parent | Merge #12582: Fix ListCoins test failure due to unset g_wallet_allow_fallback... (diff) | |
| download | discoin-d8a99f65e53019becdd8d2631396012bafb29741.tar.xz discoin-d8a99f65e53019becdd8d2631396012bafb29741.zip | |
Allow wallet files in multiple directories
Remove requirement that two wallet files can only be opened at the same time if
they are contained in the same directory.
This change mostly consists of updates to function signatures (updating
functions to take fs::path arguments, instead of combinations of strings,
fs::path, and CDBEnv / CWalletDBWrapper arguments).
Diffstat (limited to 'src/qt/test/wallettests.cpp')
| -rw-r--r-- | src/qt/test/wallettests.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/qt/test/wallettests.cpp b/src/qt/test/wallettests.cpp index cd4929213..af4e36c04 100644 --- a/src/qt/test/wallettests.cpp +++ b/src/qt/test/wallettests.cpp @@ -157,9 +157,7 @@ void TestGUI() for (int i = 0; i < 5; ++i) { test.CreateAndProcessBlock({}, GetScriptForRawPubKey(test.coinbaseKey.GetPubKey())); } - bitdb.MakeMock(); - std::unique_ptr<CWalletDBWrapper> dbw(new CWalletDBWrapper(&bitdb, "wallet_test.dat")); - CWallet wallet(std::move(dbw)); + CWallet wallet("mock", CWalletDBWrapper::CreateMock()); bool firstRun; wallet.LoadWallet(firstRun); { @@ -260,9 +258,6 @@ void TestGUI() QPushButton* removeRequestButton = receiveCoinsDialog.findChild<QPushButton*>("removeRequestButton"); removeRequestButton->click(); QCOMPARE(requestTableModel->rowCount({}), currentRowCount-1); - - bitdb.Flush(true); - bitdb.Reset(); } } |