Remove some logging in tests.

GitOrigin-RevId: 35194c43063ec1b65d67b3d58157ab77d7819691
This commit is contained in:
levlam 2020-08-02 01:40:48 +03:00
parent f1a23b9256
commit 5285a02cf8
4 changed files with 4 additions and 6 deletions

View File

@ -26,8 +26,7 @@ class PtsManager {
// 0 if not a checkpoint
PtsId add_pts(int32 pts) {
CHECK(pts >= 0);
if (pts != 0) {
if (pts > 0) {
mem_pts_ = pts;
}
return state_helper_.add(pts);

View File

@ -919,7 +919,7 @@ Status SecretChatActor::do_inbound_message_encrypted(unique_ptr<logevent::Inboun
}
// support for older layer
LOG(WARNING) << "Failed to Fetch update: " << status;
LOG(WARNING) << "Failed to fetch update: " << status;
send_action(secret_api::make_object<secret_api::decryptedMessageActionNotifyLayer>(MY_LAYER), SendFlag::None,
Promise<>());
@ -969,7 +969,7 @@ Status SecretChatActor::check_seq_no(int in_seq_no, int out_seq_no, int32 his_la
Status SecretChatActor::do_inbound_message_decrypted_unchecked(unique_ptr<logevent::InboundSecretMessage> message) {
SCOPE_EXIT {
LOG_IF(FATAL, message && message->qts_ack) << "Lost qts_promise";
CHECK(message == nullptr || !message->qts_ack);
};
auto in_seq_no = message->decrypted_message_layer->in_seq_no_;
auto out_seq_no = message->decrypted_message_layer->out_seq_no_;

View File

@ -433,7 +433,6 @@ static void test_to_double() {
TEST(Misc, to_double) {
test_to_double();
const char *locale_name = (std::setlocale(LC_ALL, "fr-FR") == nullptr ? "C" : "fr-FR");
LOG(ERROR) << locale_name;
std::locale new_locale(locale_name);
auto host_locale = std::locale::global(new_locale);
test_to_double();

View File

@ -183,7 +183,7 @@ TEST(Post, SignalsAndThread) {
}
CHECK(ptrs == ans);
LOG(ERROR) << ptrs;
//LOG(ERROR) << ptrs;
//LOG(ERROR) << std::set<int *>(addrs.begin(), addrs.end()).size();
//LOG(ERROR) << addrs;
}