Skip to content

Commit

Permalink
Revert "Revert "test(cmd): fix flaky can receive USR1 test (#10903)""
Browse files Browse the repository at this point in the history
This reverts commit 9a49049.
  • Loading branch information
AndyZhang0707 authored and windmgc committed Dec 11, 2023
1 parent 4dea806 commit 8bb559c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/02-integration/02-cmd/13-signals_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ describe("signals", function()
assert(helpers.start_kong())
helpers.signal(nil, "-USR1")

local conf = helpers.get_running_conf()
local _, code = helpers.execute("grep -F '(SIGUSR1) received from' " ..
conf.nginx_err_logs, true)
assert.equal(0, code)
helpers.wait_until(function()
local conf = helpers.get_running_conf()
local _, code = helpers.execute("grep -F '(SIGUSR1) received from' " ..
conf.nginx_err_logs, true)
return 0 == code, "SIGUSR1 not received"
end)
end)

it("can receive USR2 #flaky", function()
Expand Down

0 comments on commit 8bb559c

Please sign in to comment.