Commit Diff


commit - 9041d7eda8838ebd50702e6ccc2e0ebb8b9e5fc4
commit + ace933e65e109d5837e4409d1f329090692662c0
blob - 5c60f8dab1fd871da4413e0e39b818b761a4df1b
blob + 6e1b00f66e7ea6e328100ed2d3e72ec212e57816
--- test/app-luatest/gh_6128_background_mode_test.lua
+++ test/app-luatest/gh_6128_background_mode_test.lua
@@ -53,12 +53,11 @@ pid_file='%s', background=true, work_dir='%s', log='%s
     t.helpers.retrying({timeout = 2, delay = 0.01}, function(path)
         assert(fio.path.exists(path) == true)
     end, g.log_path)
+    g.pid = fio.open(g.pid_path):read()
 end)
 
 g.after_test("test_background_mode_box_cfg", function(cg)
-    cg.ph:terminate()
-    cg.ph:wait()
-    cg.ph:close()
+    os.execute("kill -9 " .. cg.pid)
     fio.unlink(cg.pid_path)
     fio.unlink(cg.log_path)
     os.remove("*.xlog")
@@ -94,12 +93,11 @@ g.before_test("test_background_mode_env_vars", functio
     t.helpers.retrying({timeout = 2, delay = 0.01}, function(path)
         assert(fio.path.exists(path) == true)
     end, g.log_path)
+    g.pid = fio.open(g.pid_path):read()
 end)
 
 g.after_test("test_background_mode_env_vars", function(cg)
-    cg.ph:terminate()
-    cg.ph:wait()
-    cg.ph:close()
+    os.execute("kill -9 " .. cg.pid)
     fio.unlink(cg.pid_path)
     fio.unlink(cg.log_path)
     os.remove("*.xlog")