diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-06-30 12:12:28 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-17 16:12:03 +0000 |
commit | 95a21a793d22d95868d9e12bda64ac8bed8ef93c (patch) | |
tree | d6813020446db1745cfec6a8dbce4b729a7ed870 /tests | |
parent | tests: add multisig unit tests (diff) | |
download | monero-95a21a793d22d95868d9e12bda64ac8bed8ef93c.tar.xz |
wallet2: allow empty wallet filename to avoid saving data
Useful to speed tests up and avoid unnecessary leftover files
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_tests/multisig.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/unit_tests/multisig.cpp b/tests/unit_tests/multisig.cpp index 2fb201d82..8a94012e5 100644 --- a/tests/unit_tests/multisig.cpp +++ b/tests/unit_tests/multisig.cpp @@ -59,20 +59,10 @@ static void make_wallet(unsigned int idx, tools::wallet2 &wallet) crypto::secret_key spendkey; epee::string_tools::hex_to_pod(test_addresses[idx].spendkey, spendkey); - std::string basename = "/tmp/multisig-unit-test-" + std::to_string(idx); try { - boost::filesystem::remove(basename + ".keys"); - boost::filesystem::remove(basename + ".address.txt"); - boost::filesystem::remove(basename); - wallet.init(""); - wallet.generate(basename, "", spendkey, true, false); - - boost::filesystem::remove(basename + ".keys"); - boost::filesystem::remove(basename + ".address.txt"); - boost::filesystem::remove(basename); - + wallet.generate("", "", spendkey, true, false); ASSERT_TRUE(test_addresses[idx].address == wallet.get_account().get_public_address_str(true)); } catch (const std::exception &e) |