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 CBA6C6FC8F; Thu, 25 Mar 2021 16:29:38 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CBA6C6FC8F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616678978; bh=gLzbIuYPLVCBAgyJkXD16zrIlwXgZ75rYeob1s6xeRU=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=C8Hj3cirSUcGi08Bhy9cbx3qqSucMgHAfbJU/7571dQM/c3S7FJY/X0sJKFOffQVS /UtctWRCQk/HAIFY4wccscNJ2PL9EQ9zDAOO8LJ+eFGsPJ5tEYs9NicEUM6MXmNLu0 7tdpANhFPgCq9q201NO6Kmvue+fwotHbJa+U8ivk= Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 960506FC8F for ; Thu, 25 Mar 2021 16:29:37 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 960506FC8F Received: by mail-lj1-f181.google.com with SMTP id s17so3116593ljc.5 for ; Thu, 25 Mar 2021 06:29:37 -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:mime-version :content-transfer-encoding; bh=qYrpF6k+lypLiH299IsyUiA+NZk8pxehWwZYGi2GIXE=; b=Y54nRNhkzo7LiTfrbBj4/yZpo3mZrwfbGmXkFume3e78nedYJtt2C+bTCg4pz/hLXn F3748+V2iUM7IV8JrvSJUWZv6/C/dwzZwA2TGY/tevYmocHzYrmrE5XbK0IgHMlu5X/x Gkw/DltItSUE0nc4Nj8gGeoDRiqBYDFB2mSe58FRjDI818ciOPB2qeieoxwQLkTBlsim fyya9ACe/3EzE+wLg4i5cQC5OMf1+v2yA7xfOXjFUBgELEsLM9eVs1s5RyJTkbudbgdK Rb6kY3b4YIw5CQIokirf4oM7cly3Xv4JK0l8S9m04BIMRaZj8cgmEsMt/9evfkIvj3wl Z4Ng== X-Gm-Message-State: AOAM5317n7pea4MfyXpYrd2lpnlzXinxMRJj+QOcKL1FM/QQob8Ozo7y 4OLq7qwkng8yTeIP7jVSab4POTMFT8iY8g== X-Google-Smtp-Source: ABdhPJyvW6OM8seHzFqK9ZEz5WMI5hPUEsfa3mh3UGIXGf6xWkIii08T6Y1saoAXQW4NNIvM/8tQxg== X-Received: by 2002:a2e:7301:: with SMTP id o1mr5596343ljc.42.1616678976392; Thu, 25 Mar 2021 06:29:36 -0700 (PDT) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id f15sm556725lfr.51.2021.03.25.06.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 06:29:35 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 7A1E956017D; Thu, 25 Mar 2021 16:29:34 +0300 (MSK) To: tml Date: Thu, 25 Mar 2021 16:29:33 +0300 Message-Id: <20210325132933.1992678-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH] test_run:wait_log - drop redundant assert 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: Alexander Turenko Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" The callee wait_cond does setup timeout by self in case if not provided | local function wait_cond(self, cond, timeout, delay) | ... | local timeout = timeout or 60 | ... | end | | local function wait_log(self, node, what, bytes, timeout, opts) | ... | return wait_cond(self, cond, timeout, delay) | end so no need to verify if timeout is provided in wait_log args. Signed-off-by: Cyrill Gorcunov --- test_run.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/test_run.lua b/test_run.lua index 5c29ec9..9e95402 100644 --- a/test_run.lua +++ b/test_run.lua @@ -426,7 +426,6 @@ end -- Wrapper for grep_log, wait until expected log entry is appear -- in a server log file. local function wait_log(self, node, what, bytes, timeout, opts) - assert(timeout ~= nil) local opts = opts or {} local delay = opts.delay -- 2.30.2