From: Vladislav Shpilevoy via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Cyrill Gorcunov <gorcunov@gmail.com>, tml <tarantool-patches@dev.tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v6 2/3] test: add a test for wal_cleanup_delay option Date: Mon, 29 Mar 2021 23:07:29 +0200 [thread overview] Message-ID: <d01a3f46-b352-517b-df63-0ae662a8429f@tarantool.org> (raw) In-Reply-To: <20210327111310.37504-3-gorcunov@gmail.com> Hi! Thanks for the patch! > diff --git a/test/replication/gh-5806-xlog-cleanup.result b/test/replication/gh-5806-xlog-cleanup.result > new file mode 100644 > index 000000000..da09daf17 > --- /dev/null > +++ b/test/replication/gh-5806-xlog-cleanup.result > @@ -0,0 +1,558 @@ > +master_uuid = test_run:eval('master', 'return box.info.uuid')[1] > + | --- > + | ... > +replica_uuid = test_run:eval('replica', 'return box.info.uuid')[1] > + | --- > + | ... > +master_custer = test_run:eval('master', 'return box.space._cluster:select()')[1] 1. master_custer -> master_cluster. > + > +test_run:switch('master') > + | --- > + | - true > + | ... > +test_run:cmd('restart server master with args="3600"') > + | > +assert(box.info.gc().is_paused == true) 2. Do you know that boolean expressions don't need to be compared with the boolean constants explicitly? You could write assert(box.info.gc().is_paused). The same in all the other similar places in this file. Especially where you do '== false' which is super confusing.
next prev parent reply other threads:[~2021-03-29 21:07 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-27 11:13 [Tarantool-patches] [PATCH v6 0/3] gc/xlog: delay xlog cleanup until relays are subscribed Cyrill Gorcunov via Tarantool-patches 2021-03-27 11:13 ` [Tarantool-patches] [PATCH v6 1/3] " Cyrill Gorcunov via Tarantool-patches 2021-03-27 11:13 ` [Tarantool-patches] [PATCH v6 2/3] test: add a test for wal_cleanup_delay option Cyrill Gorcunov via Tarantool-patches 2021-03-29 21:07 ` Vladislav Shpilevoy via Tarantool-patches [this message] 2021-03-29 21:46 ` Cyrill Gorcunov via Tarantool-patches 2021-03-29 21:54 ` Vladislav Shpilevoy via Tarantool-patches 2021-03-29 21:57 ` Cyrill Gorcunov via Tarantool-patches 2021-03-29 22:19 ` Vladislav Shpilevoy via Tarantool-patches 2021-03-29 22:40 ` Cyrill Gorcunov via Tarantool-patches 2021-03-29 22:56 ` Vladislav Shpilevoy via Tarantool-patches 2021-03-30 7:19 ` Cyrill Gorcunov via Tarantool-patches 2021-03-30 11:55 ` Cyrill Gorcunov via Tarantool-patches 2021-03-30 19:59 ` Vladislav Shpilevoy via Tarantool-patches 2021-03-27 11:13 ` [Tarantool-patches] [PATCH v6 3/3] test: box-tap/gc -- add test for is_paused field Cyrill Gorcunov via Tarantool-patches 2021-03-30 19:57 ` [Tarantool-patches] [PATCH v6 0/3] gc/xlog: delay xlog cleanup until relays are subscribed Vladislav Shpilevoy via Tarantool-patches 2021-03-31 8:28 ` Kirill Yukhin via Tarantool-patches
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=d01a3f46-b352-517b-df63-0ae662a8429f@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=gorcunov@gmail.com \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v6 2/3] test: add a test for wal_cleanup_delay option' \ /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