From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 3F6AF2266D for ; Tue, 18 Dec 2018 03:39:44 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tHL0K0__HCFk for ; Tue, 18 Dec 2018 03:39:44 -0500 (EST) Received: from smtp51.i.mail.ru (smtp51.i.mail.ru [94.100.177.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 9FB7B2232F for ; Tue, 18 Dec 2018 03:39:43 -0500 (EST) From: Sergei Voronezhskii Subject: [tarantool-patches] [PATCH] test: wait for log entry Date: Tue, 18 Dec 2018 11:39:37 +0300 Message-Id: <20181218083937.47936-1-sergw@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org Cc: Alexander Turenko , Kirill Yukhin replication/sync.result fails on `test_run:grep_log('replica', 'ER_CFG` which returns null, which means this entry is not found, instead wait_log 10s to be sure that the entry appeared in the log Fixes: #3835 --- BRANCH: https://github.com/tarantool/tarantool/tree/sergw/fix-replication-sync-grep-log test/replication/sync.result | 2 +- test/replication/sync.test.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/replication/sync.result b/test/replication/sync.result index b34501dae..c0990ca6d 100644 --- a/test/replication/sync.result +++ b/test/replication/sync.result @@ -298,7 +298,7 @@ box.info.replication[1].upstream.status -- follow --- - follow ... -test_run:grep_log('replica', 'ER_CFG.*') +test_run:wait_log('replica', 'ER_CFG.*', nil, 10) --- - 'ER_CFG: Incorrect value for option ''replication'': duplicate connection with the same replica UUID' diff --git a/test/replication/sync.test.lua b/test/replication/sync.test.lua index cae97a26f..80327b061 100644 --- a/test/replication/sync.test.lua +++ b/test/replication/sync.test.lua @@ -154,7 +154,7 @@ box.cfg{replication = replication} box.info.status -- running box.info.ro -- false box.info.replication[1].upstream.status -- follow -test_run:grep_log('replica', 'ER_CFG.*') +test_run:wait_log('replica', 'ER_CFG.*', nil, 10) test_run:cmd("switch default") test_run:cmd("stop server replica") -- 2.18.0