From cb5a80d775fcae059bd31707b00ad88b22e0db6b Mon Sep 17 00:00:00 2001 From: thefosk Date: Thu, 21 May 2015 03:17:25 -0700 Subject: [PATCH] adding some time to wait for process to be terminated --- spec/integration/cli/restart_spec.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/integration/cli/restart_spec.lua b/spec/integration/cli/restart_spec.lua index 1324184f528..5fe951629d6 100644 --- a/spec/integration/cli/restart_spec.lua +++ b/spec/integration/cli/restart_spec.lua @@ -29,6 +29,7 @@ describe("CLI", function() it("should restart kong when it's crashed", function() os.execute("pkill -9 nginx") + os.execute("sleep 0.5") -- Wait for nginx to terminate local res, code = spec_helper.restart_kong() assert.are.same(0, code) end)