From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 5055B6F3C8; Sat, 27 Mar 2021 14:14:48 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5055B6F3C8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616843688; bh=DAgVW6CmAcfHx+nQKcApBFxG6ACeCfTJUIzrAKlNjGI=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=c/WuLJ7VMpS8z4GCOXUlE2JvSeZquM1VP+gR2wHmhiFuYV3xEa2i8SYEwwjOjcgL0 eFcpaKee95h/2S4885snLemsogZMbLHrvNP8tAdUBFk6BIbn0PNVlw27SQREE+5WeU 0CtVFnPa6NoV0Q1pkTUXqy8k78h1LTV0V4ARpZ3Y= Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 2CFB56BD38 for ; Sat, 27 Mar 2021 14:13:50 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2CFB56BD38 Received: by mail-lf1-f41.google.com with SMTP id o10so11489457lfb.9 for ; Sat, 27 Mar 2021 04:13:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3GcP6PAHeXdzmmPQx8kCEkGpieyUYPVmJVheHJOPRtQ=; b=tkwiXAvVJ22wXJG9OfOfYabFG4DZ1GQhxxw0L6Q2Vr2iPZsTckaLbhSHfs1Awut+dW h8tI3EIQqsH1IVyudGSE/6AJ0qC5+sNiVA7JcrPL9ksMUzWx2VVZwN5jjIrGPLGQvLYe V8aZjBbAtxfBKlGyBV4aZmRkb34HTX6DUEqesANpWBQyBJ8Io0O3PmupblOhfMDkwNbk KRnczhV4SCTRWeBoqBeYRfliEURw/o2N+GgKroSzanM4yfHUeqa81xCoXUDOc52cb7Nl VmO3ywNIJOOvUp5At1qTEZFbR2Tv4pBwe0DRA15esx9xa5dLcC4b4GyZYe9/+demcjnA bLYg== X-Gm-Message-State: AOAM533ZQX9W10HQKxb7mXPxCIO7zA9JIK9kDYMnvi0YLcd9ec3AIRd+ U72EMPSfs9okvexb4cwxZCwGpRCe8NnQPA== X-Google-Smtp-Source: ABdhPJznUtbZ2Jh1JMfXRauxa1A+6iHYl0q7fbEP2jzLeHjz15GTkX3MlGoBwyfBq/6DVL63TAAhXw== X-Received: by 2002:a19:3f08:: with SMTP id m8mr11219920lfa.275.1616843629286; Sat, 27 Mar 2021 04:13:49 -0700 (PDT) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id 188sm1219278lfo.0.2021.03.27.04.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Mar 2021 04:13:48 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 2ABA3560156; Sat, 27 Mar 2021 14:13:12 +0300 (MSK) To: tml Date: Sat, 27 Mar 2021 14:13:10 +0300 Message-Id: <20210327111310.37504-4-gorcunov@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210327111310.37504-1-gorcunov@gmail.com> References: <20210327111310.37504-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v6 3/3] test: box-tap/gc -- add test for is_paused field X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Once simple bootstrap is complete and there is no replicas used we should run with gc unpaused. Part-of #5806 Acked-by: Serge Petrenko Signed-off-by: Cyrill Gorcunov --- 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 -- -- 2.30.2