mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
Merge pull request #6888
143d173 Use BOOST_CHECK_MESSAGE() rather than BOOST_CHECK() in alerts_tests.cpp and initialize strMiscWarning before calling PartitionCheck()." (Eric Lombrozo)
This commit is contained in:
commit
c8322ff7f7
@ -217,10 +217,12 @@ BOOST_AUTO_TEST_CASE(PartitionAlert)
|
|||||||
// use them
|
// use them
|
||||||
}
|
}
|
||||||
|
|
||||||
|
strMiscWarning = "";
|
||||||
|
|
||||||
// Test 1: chain with blocks every nPowTargetSpacing seconds,
|
// Test 1: chain with blocks every nPowTargetSpacing seconds,
|
||||||
// as normal, no worries:
|
// as normal, no worries:
|
||||||
PartitionCheck(falseFunc, csDummy, &indexDummy[99], nPowTargetSpacing);
|
PartitionCheck(falseFunc, csDummy, &indexDummy[99], nPowTargetSpacing);
|
||||||
BOOST_CHECK(strMiscWarning.empty());
|
BOOST_CHECK_MESSAGE(strMiscWarning.empty(), strMiscWarning);
|
||||||
|
|
||||||
// Test 2: go 3.5 hours without a block, expect a warning:
|
// Test 2: go 3.5 hours without a block, expect a warning:
|
||||||
now += 3*60*60+30*60;
|
now += 3*60*60+30*60;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user