aboutsummaryrefslogtreecommitdiff
path: root/src/test/timedata_tests.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-08-02 17:06:37 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-11-04 10:42:33 -0500
commitfa2c44c3ccc3e7a54e2afc862addd555d5a6e51b (patch)
tree25dcc1cf23640475cff8321843dba35499436e5c /src/test/timedata_tests.cpp
parentfa1936f57bbf5aebb1f8fc18701441d79219d443 (diff)
test: Add ASSERT_DEBUG_LOG to unit test framework
Diffstat (limited to 'src/test/timedata_tests.cpp')
-rw-r--r--src/test/timedata_tests.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/timedata_tests.cpp b/src/test/timedata_tests.cpp
index 7b00222ab7..c1a6df72d5 100644
--- a/src/test/timedata_tests.cpp
+++ b/src/test/timedata_tests.cpp
@@ -5,6 +5,7 @@
#include <netaddress.h>
#include <noui.h>
+#include <test/lib/logging.h>
#include <test/setup_common.h>
#include <timedata.h>
#include <warnings.h>
@@ -59,9 +60,10 @@ BOOST_AUTO_TEST_CASE(addtimedata)
MultiAddTimeData(3, DEFAULT_MAX_TIME_ADJUSTMENT + 1);
// Filter size is 1 + 3 = 4: It is always initialized with a single element (offset 0)
- noui_suppress();
- MultiAddTimeData(1, DEFAULT_MAX_TIME_ADJUSTMENT + 1); //filter size 5
- noui_reconnect();
+ {
+ ASSERT_DEBUG_LOG("Please check that your computer's date and time are correct!");
+ MultiAddTimeData(1, DEFAULT_MAX_TIME_ADJUSTMENT + 1); //filter size 5
+ }
BOOST_CHECK(GetWarnings("gui").find("clock is wrong") != std::string::npos);