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 003E36FC86; Wed, 24 Mar 2021 19:39:35 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 003E36FC86 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616603976; 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=oWWlFwl4BOmaeV3sSEFkE9AQVqjLyfOc9yatQT7z2Suv3iK4ogpUTL+khcWbrpemS y/TBVymp6bkh0Sk2SwQWVE9SjSdnEOwL9FUjnG86jASMBi7RDuerlxToqA+sUeDa2R KoMKbKOmrpqeURAaGvE9zvGG9kUUsXnxrMkzFdkI= Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 3D7276BD38 for ; Wed, 24 Mar 2021 19:38:41 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 3D7276BD38 Received: by mail-lf1-f47.google.com with SMTP id m12so32921429lfq.10 for ; Wed, 24 Mar 2021 09:38:41 -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=BL2ammH0nDcb5gNkxvFKTca15kH9tQpEcJGmqxRSNSLTkGo1mC5Sf6KdT1LnovKpEW k0Jbc7mNXo85+ZFfwhICuM9KRIwVL630eabF8X6BLlyNmATLCAGjG4qWYspDuxHo9U2Z D4hlDsj6UzestXQaR8qA8hsIpRVncuvFwKWsY15gWu2W+4arizE607EQpUhBZPLEmtXw wGsAvcX/vGxpMyv8cr1M+wYqn8XtfQvpLd2OjatX1iiMDob86nJzeKVkT8UCUJoUJ5TC QEJsc6AqGM5xypWvg+8TosdQFGgk4414/OxjlaMmgPBMeOpVrxRrkpStkp817WLe5n56 pHSQ== X-Gm-Message-State: AOAM531PpoQuDh19tFXKGelbcbc60QljMvMTZu0z/KoiuWzY9Xr28bxV RbAHC6xU7aqYFb9VJcyRlpBV/PJ1csM= X-Google-Smtp-Source: ABdhPJxxX+rgACV39+CGVzR1ij+3/m83BDG08QYwogrFRlHI/b8NQQCfWJ7kZ5dIltEC0dCSIhVK/g== X-Received: by 2002:a05:6512:985:: with SMTP id w5mr2369492lft.122.1616603920354; Wed, 24 Mar 2021 09:38:40 -0700 (PDT) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id i12sm289099lfv.220.2021.03.24.09.38.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 09:38:39 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 4ACBF560239; Wed, 24 Mar 2021 19:38:00 +0300 (MSK) To: tml Date: Wed, 24 Mar 2021 19:37:59 +0300 Message-Id: <20210324163759.1900553-4-gorcunov@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210324163759.1900553-1-gorcunov@gmail.com> References: <20210324163759.1900553-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v4 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