Skip to content

Commit

Permalink
adding some time to wait for process to be terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco committed May 21, 2015
1 parent 8960d7b commit cb5a80d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/integration/cli/restart_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cb5a80d

Please sign in to comment.