diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-07-14 10:36:14 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-07-14 10:36:14 -0400 |
commit | ea80b81e2e6d494a03177af50edef73f22820b3f (patch) | |
tree | 6e0ddca167cfddba767cd915313539b613802cbc /src/test | |
parent | 2ea7eb62b21affeb56fcea7433cfff9e5bc4742c (diff) |
test_bitcoin: Avoid read/write to default datadir
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/net_tests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/net_tests.cpp b/src/test/net_tests.cpp index 42e615ab0c..2a77e0e1ec 100644 --- a/src/test/net_tests.cpp +++ b/src/test/net_tests.cpp @@ -89,6 +89,7 @@ BOOST_AUTO_TEST_CASE(cnode_listen_port) BOOST_AUTO_TEST_CASE(caddrdb_read) { + SetDataDir("caddrdb_read"); CAddrManUncorrupted addrmanUncorrupted; addrmanUncorrupted.MakeDeterministic(); @@ -134,6 +135,7 @@ BOOST_AUTO_TEST_CASE(caddrdb_read) BOOST_AUTO_TEST_CASE(caddrdb_read_corrupted) { + SetDataDir("caddrdb_read_corrupted"); CAddrManCorrupted addrmanCorrupted; addrmanCorrupted.MakeDeterministic(); |