From: Vladimir Davydov <vdavydov.dev@gmail.com> To: Sergei Voronezhskii <sergw@tarantool.org> Cc: tarantool-patches@freelists.org, Alexander Turenko <alexander.turenko@tarantool.org>, Kirill Yukhin <kyukhin@tarantool.org> Subject: Re: [tarantool-patches] [PATCH] test: wait for log entry Date: Mon, 24 Dec 2018 14:55:35 +0300 [thread overview] Message-ID: <20181224115535.5mzuybibtwvxxy7p@esperanza> (raw) In-Reply-To: <20181218083937.47936-1-sergw@tarantool.org> On Tue, Dec 18, 2018 at 11:39:37AM +0300, Sergei Voronezhskii wrote: > 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 The issue title/description says nothing about this particular failure. Please update. > --- > BRANCH: https://github.com/tarantool/tarantool/tree/sergw/fix-replication-sync-grep-log Link to the issue is missing. BRANCH prefix is redundant. > 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) This is wrong - by the time box.cfg() returns, the error message must have already been printed to the log. Instead the test should wait for the message to appear in the log before disabling WAL_DELAY injection.
prev parent reply other threads:[~2018-12-24 11:55 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-12-18 8:39 Sergei Voronezhskii 2018-12-23 9:41 ` Alexander Turenko 2018-12-24 11:55 ` Vladimir Davydov [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20181224115535.5mzuybibtwvxxy7p@esperanza \ --to=vdavydov.dev@gmail.com \ --cc=alexander.turenko@tarantool.org \ --cc=kyukhin@tarantool.org \ --cc=sergw@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='Re: [tarantool-patches] [PATCH] test: wait for log entry' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox