Skip to content

Commit

Permalink
tests(http_mock): assert eventually-consistent file condition
Browse files Browse the repository at this point in the history
  • Loading branch information
flrgh authored and samugi committed Apr 5, 2024
1 parent 015aa24 commit 6f0263b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/02-integration/01-helpers/03-http_mock_spec.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local http_mock = require "spec.helpers.http_mock"
local tapping = require "spec.helpers.http_mock.tapping"
local pl_file = require "pl.file"
local helpers = require "spec.helpers"

for _, tls in ipairs {true, false} do
describe("http_mock with " .. (tls and "https" or "http") , function()
Expand Down Expand Up @@ -216,9 +216,8 @@ describe("http_mock config", function()
assert(mock:stop())
end)

local pid_filename = mock_prefix .. "/logs/nginx.pid"

assert(pl_file.access_time(pid_filename) ~= nil, "mocking not in the correct place")
helpers.wait_for_file_contents(mock_prefix .. "/logs/nginx.pid")
end)

it("init_by_lua_block inject", function ()
Expand Down

1 comment on commit 6f0263b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:6f0263b3064ccf76d6d6a93db99b570a6dba20d7
Artifacts available https://github.com/Kong/kong/actions/runs/8566715037

Please sign in to comment.