Skip to content

Commit 124178b

Browse files
committed
Fix tests
1 parent 4594723 commit 124178b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+163
-162
lines changed

src/Makefile.test.include

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ BITCOIN_TESTS =\
7878
test/skiplist_tests.cpp \
7979
test/streams_tests.cpp \
8080
test/test_dash.cpp \
81-
test/test_bitcoin.h \
81+
test/test_dash.h \
8282
test/timedata_tests.cpp \
8383
test/transaction_tests.cpp \
8484
test/txvalidationcache_tests.cpp \

src/test/Checkpoints_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "checkpoints.h"
1010

1111
#include "uint256.h"
12-
#include "test/test_bitcoin.h"
12+
#include "test/test_dash.h"
1313
#include "chainparams.h"
1414

1515
#include <boost/test/unit_test.hpp>

src/test/DoS_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "serialize.h"
1414
#include "util.h"
1515

16-
#include "test/test_bitcoin.h"
16+
#include "test/test_dash.h"
1717

1818
#include <stdint.h>
1919

src/test/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ For further reading, I found the following website to be helpful in
2222
explaining how the boost unit test framework works:
2323
[http://www.alittlemadness.com/2009/03/31/c-unit-testing-with-boosttest/](http://www.alittlemadness.com/2009/03/31/c-unit-testing-with-boosttest/).
2424

25-
test_bitcoin has some built-in command-line arguments; for
25+
test_dash has some built-in command-line arguments; for
2626
example, to run just the getarg_tests verbosely:
2727

28-
test_bitcoin --log_level=all --run_test=getarg_tests
28+
test_dash --log_level=all --run_test=getarg_tests
2929

3030
... or to run just the doubledash test:
3131

32-
test_bitcoin --run_test=getarg_tests/doubledash
32+
test_dash --run_test=getarg_tests/doubledash
3333

34-
Run test_bitcoin --help for the full list.
34+
Run test_dash --help for the full list.
3535

src/test/accounting_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "wallet/wallet.h"
66
#include "wallet/walletdb.h"
77

8-
#include "test/test_bitcoin.h"
8+
#include "test/test_dash.h"
99

1010
#include <stdint.h>
1111

src/test/addrman_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44
#include "addrman.h"
5-
#include "test/test_bitcoin.h"
5+
#include "test/test_dash.h"
66
#include <string>
77
#include <boost/test/unit_test.hpp>
88

src/test/alert_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "util.h"
1616
#include "utilstrencodings.h"
1717

18-
#include "test/test_bitcoin.h"
18+
#include "test/test_dash.h"
1919

2020
#include <fstream>
2121

@@ -224,8 +224,8 @@ BOOST_AUTO_TEST_CASE(PartitionAlert)
224224
PartitionCheck(falseFunc, csDummy, &indexDummy[99], nPowTargetSpacing);
225225
BOOST_CHECK_MESSAGE(strMiscWarning.empty(), strMiscWarning);
226226

227-
// Test 2: go 3.5 hours without a block, expect a warning:
228-
now += 3*60*60+30*60;
227+
// Test 2: go 52.5 minutes without a block, expect a warning:
228+
now += (3*60*60+30*60)/4; // we have 4x faster blocks
229229
SetMockTime(now);
230230
PartitionCheck(falseFunc, csDummy, &indexDummy[99], nPowTargetSpacing);
231231
BOOST_CHECK(!strMiscWarning.empty());

src/test/allocator_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "util.h"
66

77
#include "support/allocators/secure.h"
8-
#include "test/test_bitcoin.h"
8+
#include "test/test_dash.h"
99

1010
#include <boost/test/unit_test.hpp>
1111

src/test/arith_uint256_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "arith_uint256.h"
1313
#include <string>
1414
#include "version.h"
15-
#include "test/test_bitcoin.h"
15+
#include "test/test_dash.h"
1616

1717
BOOST_FIXTURE_TEST_SUITE(arith_uint256_tests, BasicTestingSetup)
1818

src/test/base32_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include "utilstrencodings.h"
6-
#include "test/test_bitcoin.h"
6+
#include "test/test_dash.h"
77

88
#include <boost/test/unit_test.hpp>
99

0 commit comments

Comments
 (0)