diff options
author | klementtan <klementtan@gmail.com> | 2022-08-18 13:37:25 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-08-20 11:30:51 +0200 |
commit | 8fe3457dbb4146952b92fb9509bbe4e97dc1f05b (patch) | |
tree | 24617cf6f48b6a1e68b3ee605d5af56caf27be3d /src/test/i2p_tests.cpp | |
parent | c2797cfc602c5cdd899a7c11b37bb5711cebff38 (diff) | |
download | bitcoin-8fe3457dbb4146952b92fb9509bbe4e97dc1f05b.tar.xz |
Update LogAcceptCategory() and unit tests with log severity levels
Co-authored-by: "Jon Atack <jon@atack.com>"
Diffstat (limited to 'src/test/i2p_tests.cpp')
-rw-r--r-- | src/test/i2p_tests.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/i2p_tests.cpp b/src/test/i2p_tests.cpp index bd9ba4b8f7..6fb104622d 100644 --- a/src/test/i2p_tests.cpp +++ b/src/test/i2p_tests.cpp @@ -3,6 +3,7 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <i2p.h> +#include <logging.h> #include <netaddress.h> #include <test/util/logging.h> #include <test/util/net.h> @@ -19,6 +20,8 @@ BOOST_FIXTURE_TEST_SUITE(i2p_tests, BasicTestingSetup) BOOST_AUTO_TEST_CASE(unlimited_recv) { + const auto prev_log_level{LogInstance().LogLevel()}; + LogInstance().SetLogLevel(BCLog::Level::Debug); auto CreateSockOrig = CreateSock; // Mock CreateSock() to create MockSock. @@ -39,6 +42,7 @@ BOOST_AUTO_TEST_CASE(unlimited_recv) } CreateSock = CreateSockOrig; + LogInstance().SetLogLevel(prev_log_level); } BOOST_AUTO_TEST_SUITE_END() |