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 7360874 commit a15193f
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions spec/02-integration/18-hybrid_rpc/02-error_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,19 @@ for _, strategy in helpers.each_strategy() do
local name = "servroot2/logs/error.log"

-- dp logs
helpers.pwait_until(function()
assert.logfile(name).has.line(
"test #1 ok", true)
assert.logfile(name).has.no.line(
"assertion failed", true)
return true
end, 10)
assert.logfile(name).has.line(
"test #1 ok", true, 10)

-- dp logs
helpers.pwait_until(function()
assert.logfile(name).has.line(
"[rpc] RPC failed, code: -32600, err: empty batch array", true)
assert.logfile(name).has.line(
"[rpc] RPC failed, code: -32600, err: empty batch array", true, 10)
assert.logfile(name).has.line(
"[rpc] RPC failed, code: -32600, err: not a valid object", true, 10)
assert.logfile(name).has.line(
"test #2 ok", true, 10)

assert.logfile(name).has.line(
"[rpc] RPC failed, code: -32600, err: not a valid object", true)

assert.logfile(name).has.line(
"test #2 ok", true)
assert.logfile(name).has.no.line(
"assertion failed", true)
return true
end, 10)
assert.logfile(name).has.no.line(
"assertion failed", true, 0)
end)
end)
end)
Expand Down

0 comments on commit a15193f

Please sign in to comment.