From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id CB283469710 for ; Thu, 28 May 2020 13:48:40 +0300 (MSK) Received: by mail-lf1-f65.google.com with SMTP id e125so16307252lfd.1 for ; Thu, 28 May 2020 03:48:40 -0700 (PDT) Date: Thu, 28 May 2020 13:48:38 +0300 From: Cyrill Gorcunov Message-ID: <20200528104838.GB215590@grain> References: <20200528100738.221911-1-gorcunov@gmail.com> <20200528100738.221911-5-gorcunov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Tarantool-patches] [PATCH v4 4/8] lua/log: do not allow to set json for boot logger List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Oleg Babin Cc: tml On Thu, May 28, 2020 at 01:40:25PM +0300, Oleg Babin wrote: > Hi! Thanks for your patch see one comment below. > > > diff --git a/test/app-tap/logger.test.lua b/test/app-tap/logger.test.lua > > index 492d5ea0b..7bfa06e80 100755 > > --- a/test/app-tap/logger.test.lua > > +++ b/test/app-tap/logger.test.lua > > @@ -5,7 +5,6 @@ test:plan(24) > > -- gh-3946: Assertion failure when using log_format() before box.cfg() > > local log = require('log') > > -log.log_format('json') > > I think you can change it to "pcall(log.log_format, 'json')" and check that > it returns an error. Not simply drop a test case. Good catch! Thanks, will update!