diff --git a/tdactor/test/actors_main.cpp b/tdactor/test/actors_main.cpp index ffceacc5..3e868ad0 100644 --- a/tdactor/test/actors_main.cpp +++ b/tdactor/test/actors_main.cpp @@ -405,7 +405,7 @@ TEST(Actors, send_to_dead) { } TEST(Actors, main_simple) { - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(DEBUG)); + SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); ConcurrentScheduler sched; int threads_n = 3; @@ -420,7 +420,7 @@ TEST(Actors, main_simple) { } TEST(Actors, main) { - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(DEBUG)); + SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); ConcurrentScheduler sched; int threads_n = 9; @@ -448,7 +448,7 @@ class DoAfterStop : public Actor { }; TEST(Actors, do_after_stop) { - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(DEBUG)); + SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); ConcurrentScheduler sched; int threads_n = 0; diff --git a/test/TestsRunner.cpp b/test/TestsRunner.cpp index fbe15573..081c6bf1 100644 --- a/test/TestsRunner.cpp +++ b/test/TestsRunner.cpp @@ -52,7 +52,7 @@ static FileLog file_log; static TsLog ts_log(&file_log); void TestsRunner::init(string dir) { - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(WARNING)); + SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); chdir(dir).ensure(); LOG(WARNING) << "Redirect log into " << tag("file", dir + TD_DIR_SLASH + "log.txt"); if (file_log.init("log.txt", std::numeric_limits::max())) { diff --git a/test/db.cpp b/test/db.cpp index 8917dd65..fe19b51c 100644 --- a/test/db.cpp +++ b/test/db.cpp @@ -234,7 +234,7 @@ class BaselineKV { }; TEST(DB, key_value) { - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(INFO)); + SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); std::vector keys; std::vector values; @@ -409,7 +409,7 @@ TEST(DB, persistent_key_value) { using KeyValue = BinlogKeyValue; // using KeyValue = PersistentKeyValue; // using KeyValue = SqliteKV; - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(WARNING)); + SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); std::vector keys; std::vector values; CSlice name = "test_pmc"; diff --git a/test/http.cpp b/test/http.cpp index 98c94b2e..e965e185 100644 --- a/test/http.cpp +++ b/test/http.cpp @@ -129,7 +129,7 @@ TEST(Http, reader) { return; #endif clear_thread_locals(); - SET_VERBOSITY_LEVEL(VERBOSITY_NAME(INFO)); + SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); auto start_mem = BufferAllocator::get_buffer_mem(); { auto input_writer = ChainBufferWriter::create_empty(); diff --git a/test/main.cpp b/test/main.cpp index 0ef46c75..68b0e3cd 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -16,6 +16,7 @@ int main(int argc, char **argv) { // TODO port OptionsParser to Windows + SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR)); for (int i = 1; i < argc; i++) { if (!std::strcmp(argv[i], "--filter")) { CHECK(i + 1 < argc); diff --git a/test/message_entities.cpp b/test/message_entities.cpp index 473a8714..6be3b1f7 100644 --- a/test/message_entities.cpp +++ b/test/message_entities.cpp @@ -39,9 +39,9 @@ TEST(MessageEntities, mention) { check_mention("@abcdefghijklmnopqrstuvwxyz123456", {"@abcdefghijklmnopqrstuvwxyz123456"}); check_mention("@abcdefghijklmnopqrstuvwxyz1234567", {}); check_mention("нет@mention", {}); - check_mention("@ya @gif @wiki @vid @bing @pic @bold @imdb @coub @like @vote @giff @cap ya cap @y @yar @bingg @bin", - {"@ya", "@gif", "@wiki", "@vid", "@bing", "@pic", "@bold", "@imdb", "@coub", "@like", "@vote", "@giff", - "@cap", "@bingg"}); + check_mention( + "@ya @gif @wiki @vid @bing @pic @bold @imdb @coub @like @vote @giff @cap ya cap @y @yar @bingg @bin", + {"@ya", "@gif", "@wiki", "@vid", "@bing", "@pic", "@bold", "@imdb", "@coub", "@like", "@vote", "@bingg"}); }; static void check_bot_command(string str, std::vector expected) { diff --git a/test/mtproto.cpp b/test/mtproto.cpp index aaec870f..23ce41b7 100644 --- a/test/mtproto.cpp +++ b/test/mtproto.cpp @@ -127,7 +127,7 @@ class TestPingActor : public Actor { return stop(); } if (ping_connection_->was_pong()) { - LOG(ERROR) << "GOT PONG"; + LOG(INFO) << "GOT PONG"; return stop(); } } diff --git a/test/string_cleaning.cpp b/test/string_cleaning.cpp index 6fbd8150..6fef9b02 100644 --- a/test/string_cleaning.cpp +++ b/test/string_cleaning.cpp @@ -88,8 +88,7 @@ TEST(StringCleaning, strip_empty_characters) { check_strip_empty_characters(empty, 1000000, ""); check_strip_empty_characters(empty + "a", 1000000, empty + "a"); check_strip_empty_characters(spaces + empty + spaces + "abc" + spaces, 1000000, empty + spaces_replace + "abc"); - check_strip_empty_characters(spaces + spaces + empty + spaces + spaces + empty + empty, 1000000, - empty + spaces_replace + spaces_replace + empty + empty); + check_strip_empty_characters(spaces + spaces + empty + spaces + spaces + empty + empty, 1000000, ""); check_strip_empty_characters("\r\r\r\r\r\r\r", 1000000, ""); check_strip_empty_characters("\r\n\r\n\r\n\r\n\r\n\r\n\r", 1000000, ""); check_strip_empty_characters(Slice(" \t\r\n\0\va\v\0\n\r\t ").str(), 1000000, "a");