[Tarantool-patches] [PATCH v3 3/3] test: box-tap/gc -- add test for is_paused field

Serge Petrenko sergepetrenko at tarantool.org
Wed Mar 24 16:27:05 MSK 2021



23.03.2021 18:47, Cyrill Gorcunov пишет:
> Once simple bootstrap is complete and there is no
> replicas used we should run with gc unpaused.
>
> Part-of #5806
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
> ---
>   test/box-tap/gc.test.lua | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/test/box-tap/gc.test.lua b/test/box-tap/gc.test.lua
> index f0155779c..ced87547e 100755
> --- a/test/box-tap/gc.test.lua
> +++ b/test/box-tap/gc.test.lua
> @@ -8,11 +8,12 @@ local debug = type(box.error.injection) == "table"
>   
>   -- check box.info.gc() is false if snapshot is not in progress
>   local test = tap.test('box.info.gc')
> -test:plan(1 + (debug and 1 or 0))
> +test:plan(2 + (debug and 1 or 0))
>   
>   
>   local gc = box.info.gc()
>   test:is(gc.checkpoint_is_in_progress, false, "checkpoint is not in progress")
> +test:is(gc.is_paused, false, "GC is not paused")
>   
>   -- check box.info.gc() is true if snapshot is in progress
>   --
Thanks for the patch!
LGTM.

-- 
Serge Petrenko



More information about the Tarantool-patches mailing list