aboutsummaryrefslogtreecommitdiff
path: root/src/test/base58_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-03-12 09:34:42 +0100
committerWladimir J. van der Laan <[email protected]>2015-03-12 09:45:22 +0100
commit92fd887fd42a61e95f716d3193104827f60f856c (patch)
tree3768ed6d0cba9128dd6fc5b8caa65c2dafac7bf1 /src/test/base58_tests.cpp
parentMerge pull request #5871 (diff)
downloaddiscoin-92fd887fd42a61e95f716d3193104827f60f856c.tar.xz
discoin-92fd887fd42a61e95f716d3193104827f60f856c.zip
tests: add a BasicTestingSetup and apply to all tests
Make sure that chainparams and logging is properly initialized. Doing this for every test may be overkill, but this initialization is so simple that that does not matter. This should fix the travis issues.
Diffstat (limited to 'src/test/base58_tests.cpp')
-rw-r--r--src/test/base58_tests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/base58_tests.cpp b/src/test/base58_tests.cpp
index c242dd26e..f07dd7a7d 100644
--- a/src/test/base58_tests.cpp
+++ b/src/test/base58_tests.cpp
@@ -13,6 +13,7 @@
#include "uint256.h"
#include "util.h"
#include "utilstrencodings.h"
+#include "test/test_bitcoin.h"
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp>
@@ -23,7 +24,7 @@
using namespace json_spirit;
extern Array read_json(const std::string& jsondata);
-BOOST_AUTO_TEST_SUITE(base58_tests)
+BOOST_FIXTURE_TEST_SUITE(base58_tests, BasicTestingSetup)
// Goal: test low-level base58 encoding functionality
BOOST_AUTO_TEST_CASE(base58_EncodeBase58)