Skip to content

Commit

Permalink
test(cmd): fix flaky can receive USR1 test (#10901)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0b09ee4)
  • Loading branch information
ADD-SP authored and windmgc committed May 22, 2023
1 parent d3742ed commit b565cb1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 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,15 @@ 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)
assert
.eventually(function ()
local conf = helpers.get_running_conf()
local _, code = helpers.execute("grep -F '(SIGUSR1) received from' " ..
conf.nginx_err_logs, true)
assert.equal(0, code)
end)
.with_timeout(15)
.has_no_error()
end)

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

0 comments on commit b565cb1

Please sign in to comment.