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.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "clientversion.h"
|
||||
#include "main.h"
|
||||
#include "utiltime.h"
|
||||
#include "test/test_bitcoin.h"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
@@ -19,7 +20,7 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(CheckBlock_tests)
|
||||
BOOST_FIXTURE_TEST_SUITE(CheckBlock_tests, BasicTestingSetup)
|
||||
|
||||
bool read_block(const std::string& filename, CBlock& block)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user