Skip to content

Commit c8322ff

Browse files
committed
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)
2 parents ff057f4 + 143d173 commit c8322ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/alert_tests.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,12 @@ BOOST_AUTO_TEST_CASE(PartitionAlert)
217217
// use them
218218
}
219219

220+
strMiscWarning = "";
221+
220222
// Test 1: chain with blocks every nPowTargetSpacing seconds,
221223
// as normal, no worries:
222224
PartitionCheck(falseFunc, csDummy, &indexDummy[99], nPowTargetSpacing);
223-
BOOST_CHECK(strMiscWarning.empty());
225+
BOOST_CHECK_MESSAGE(strMiscWarning.empty(), strMiscWarning);
224226

225227
// Test 2: go 3.5 hours without a block, expect a warning:
226228
now += 3*60*60+30*60;

0 commit comments

Comments
 (0)