From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 12 Apr 2019 17:20:57 +0300 From: Vladimir Davydov Subject: Re: [tarantool-patches] Re: [PATCH] test: rework box/misc test part regarding on_shutdown triggers Message-ID: <20190412142057.3aa6v6ib3toupu2o@esperanza> References: <20190411133720.39993-1-sergepetrenko@tarantool.org> <20190412140023.geyzk47gkwws7wns@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: To: Serge Petrenko Cc: tarantool-patches@freelists.org List-ID: On Fri, Apr 12, 2019 at 05:12:11PM +0300, Serge Petrenko wrote: > >> test_run:cmd("switch default") > >> +test_run:eval("test", "_ = fiber.new(function() os.exit() while true do end end)") > > > > This is supposed to stop the default instance?! > > No, it’s evaled on ’test’, which is the other instance. And that’s why we need the require(‘fiber’) above. > Anyways, will split the patch in two and resend. Missed the eval, sorry.