commit 379da36a71523ffcd76e1248722b42136a0986fb from: Sergey Bronnikov date: Wed Jun 01 05:00:37 2022 UTC make better a health check commit - fa1000f2ad3562405b8cc2e994d704919aebcc3a commit + 379da36a71523ffcd76e1248722b42136a0986fb blob - 1065d5e9e713e73aa64276df36b9d0b0ec000562 blob + 452610c0ae5830b620041f189e52e3f0f52156d1 --- test/tarantool/tarantool_test.lua +++ test/tarantool/tarantool_test.lua @@ -1,5 +1,6 @@ local fiber = require('fiber') local fio = require('fio') +local net_box = require('net.box') local molly = require('molly') local gen = molly.gen @@ -40,13 +41,15 @@ g.before_each(function() local pid = server.process.pid t.helpers.retrying( { - timeout = 0.5, + timeout = 1, }, function() t.assert(Process.is_pid_alive(pid)) + local conn = net_box.connect('127.0.0.1:3301') + t.assert(conn:is_connected() == true) + t.assert(conn:ping() == true) end ) - fiber.sleep(0.1) -- FIXME? end) g.after_each(function()