Skip to content

Commit

Permalink
no pwait_until
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jan 16, 2025
1 parent b99b9f7 commit c001089
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions spec/02-integration/18-hybrid_rpc/08-sync_v2_get_delta_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,26 +51,20 @@ for _, strategy in helpers.each_strategy() do
local name = "servroot2/logs/error.log"

-- dp logs
helpers.pwait_until(function()
assert.logfile(name).has.line(
"kong.sync.v2.get_delta ok", true)
assert.logfile(name).has.no.line(
"assertion failed", true)
assert.logfile(name).has.no.line(
"[error]", true)
return true
end, 10)
assert.logfile(name).has.line(
"kong.sync.v2.get_delta ok", true, 10)
assert.logfile(name).has.no.line(
"assertion failed", true, 0)
assert.logfile(name).has.no.line(
"[error]", true, 0)

local name = nil

-- cp logs
helpers.pwait_until(function()
assert.logfile(name).has.no.line(
"assertion failed", true)
assert.logfile(name).has.no.line(
"[error]", true)
return true
end, 10)
assert.logfile(name).has.no.line(
"assertion failed", true, 0)
assert.logfile(name).has.no.line(
"[error]", true, 0)

end)
end)
Expand Down

0 comments on commit c001089

Please sign in to comment.