aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMartin Ankerl <martin.ankerl@gmail.com>2021-09-07 18:16:09 +0200
committerJon Atack <jon@atack.com>2021-09-07 19:19:31 +0200
commitf530202353a4f8bb444966559aa15681ab3cebc6 (patch)
tree28d30a3f11b852475a1bef220b8a0c24caffd35a /src/test
parentbddae7e7ff7bb5931ed807acaef7336f2ee98476 (diff)
downloadbitcoin-f530202353a4f8bb444966559aa15681ab3cebc6.tar.xz
Make unexpected time type in BCLog::LogMsg() a compile-time error
Diffstat (limited to 'src/test')
-rw-r--r--src/test/logging_tests.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/test/logging_tests.cpp b/src/test/logging_tests.cpp
index 0e384f72e2..84ddbc50c6 100644
--- a/src/test/logging_tests.cpp
+++ b/src/test/logging_tests.cpp
@@ -28,11 +28,6 @@ BOOST_AUTO_TEST_CASE(logging_timer)
auto sec_timer = BCLog::Timer<std::chrono::seconds>("tests", "end_msg");
SetMockTime(2);
BOOST_CHECK_EQUAL(sec_timer.LogMsg("test secs"), "tests: test secs (1.00s)");
-
- SetMockTime(1);
- auto minute_timer = BCLog::Timer<std::chrono::minutes>("tests", "end_msg");
- SetMockTime(2);
- BOOST_CHECK_EQUAL(minute_timer.LogMsg("test minutes"), "Error: unexpected time type");
}
BOOST_AUTO_TEST_SUITE_END()