diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-06-10 11:44:48 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-06-10 15:01:20 +0300 |
commit | d1ae7c0355662481a7d181a0a458284936d53eb1 (patch) | |
tree | 55d250c43634c6a224d92944e22692bcf03efeff /src/test/timedata_tests.cpp | |
parent | 38e33aa481cefbe12c50f344bae190c0d95fb489 (diff) |
Make GetWarnings() return bilingual_str
Diffstat (limited to 'src/test/timedata_tests.cpp')
-rw-r--r-- | src/test/timedata_tests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/timedata_tests.cpp b/src/test/timedata_tests.cpp index 8c880babd1..1dcee23bbb 100644 --- a/src/test/timedata_tests.cpp +++ b/src/test/timedata_tests.cpp @@ -9,6 +9,7 @@ #include <test/util/setup_common.h> #include <timedata.h> #include <util/string.h> +#include <util/translation.h> #include <warnings.h> #include <string> @@ -66,7 +67,7 @@ BOOST_AUTO_TEST_CASE(addtimedata) MultiAddTimeData(1, DEFAULT_MAX_TIME_ADJUSTMENT + 1); //filter size 5 } - BOOST_CHECK(GetWarnings(true).find("clock is wrong") != std::string::npos); + BOOST_CHECK(GetWarnings(true).original.find("clock is wrong") != std::string::npos); // nTimeOffset is not changed if the median of offsets exceeds DEFAULT_MAX_TIME_ADJUSTMENT BOOST_CHECK_EQUAL(GetTimeOffset(), 0); |