diff options
| author | levlam <levlam@telegram.org> | 2021-11-21 21:41:11 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2021-11-21 21:41:11 +0300 |
| commit | a28b5f2fbb70ab35f22cc3d14c03d62d3cd8bccc (patch) | |
| tree | 2a2b7a288b80144e46e79ea2030288fb6d1088f6 /test | |
| parent | 5e34f0764118332b297626bcad216828a10a3683 (diff) | |
Remove explicit verbosity level changes in tests.
Diffstat (limited to 'test')
| -rw-r--r-- | test/db.cpp | 2 | ||||
| -rw-r--r-- | test/http.cpp | 1 | ||||
| -rw-r--r-- | test/mtproto.cpp | 2 | ||||
| -rw-r--r-- | test/secret.cpp | 1 | ||||
| -rw-r--r-- | test/tdclient.cpp | 5 |
5 files changed, 2 insertions, 9 deletions
diff --git a/test/db.cpp b/test/db.cpp index b48903950..0d19db8ed 100644 --- a/test/db.cpp +++ b/test/db.cpp @@ -340,7 +340,6 @@ class BaselineKV { }; TEST(DB, key_value) { - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); std::vector<std::string> keys; std::vector<std::string> values; @@ -517,7 +516,6 @@ TEST(DB, persistent_key_value) { using KeyValue = BinlogKeyValue<ConcurrentBinlog>; // using KeyValue = PersistentKeyValue; // using KeyValue = SqliteKV; - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); std::vector<std::string> keys; std::vector<std::string> values; CSlice path = "test_pmc"; diff --git a/test/http.cpp b/test/http.cpp index 3696ea2cb..a9be5dffa 100644 --- a/test/http.cpp +++ b/test/http.cpp @@ -140,7 +140,6 @@ TEST(Http, reader) { return; #endif clear_thread_locals(); - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); auto start_mem = BufferAllocator::get_buffer_mem(); auto start_size = BufferAllocator::get_buffer_slice_size(); { diff --git a/test/mtproto.cpp b/test/mtproto.cpp index a9a0cb09c..c886f5f60 100644 --- a/test/mtproto.cpp +++ b/test/mtproto.cpp @@ -49,7 +49,6 @@ using namespace td; TEST(Mtproto, GetHostByNameActor) { - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); ConcurrentScheduler sched; int threads_n = 1; sched.init(threads_n); @@ -667,7 +666,6 @@ TEST(Mtproto, Grease) { } TEST(Mtproto, TlsTransport) { - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); ConcurrentScheduler sched; int threads_n = 1; sched.init(threads_n); diff --git a/test/secret.cpp b/test/secret.cpp index 5dd40afb3..4b34d65f2 100644 --- a/test/secret.cpp +++ b/test/secret.cpp @@ -1001,7 +1001,6 @@ void FakeSecretChatContext::on_read_message(int64, Promise<> promise) { TEST(Secret, go) { return; - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); ConcurrentScheduler sched; int threads_n = 0; sched.init(threads_n); diff --git a/test/tdclient.cpp b/test/tdclient.cpp index c351e7358..a914c254f 100644 --- a/test/tdclient.cpp +++ b/test/tdclient.cpp @@ -828,7 +828,6 @@ class Tdclient_login final : public td::Test { using Test::Test; bool step() final { if (!is_inited_) { - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(DEBUG) + 2); sched_.init(4); sched_.create_actor_unsafe<LoginTestActor>(0, "LoginTestActor", &result_).release(); sched_.start(); @@ -936,7 +935,7 @@ TEST(Client, Multi) { TEST(Client, Manager) { td::vector<td::thread> threads; td::ClientManager client; -#if !TD_EVENTFD_UNSUPPORTED // Client must be used from a single thread if there is no EventFd +#if !TD_EVENTFD_UNSUPPORTED // Client must be used from a single thread if there is no EventFd int threads_n = 4; #else int threads_n = 1; @@ -973,7 +972,7 @@ TEST(Client, Manager) { } } -#if !TD_EVENTFD_UNSUPPORTED // Client must be used from a single thread if there is no EventFd +#if !TD_EVENTFD_UNSUPPORTED // Client must be used from a single thread if there is no EventFd TEST(Client, Close) { std::atomic<bool> stop_send{false}; std::atomic<bool> can_stop_receive{false}; |
