Skip to content

Commit

Permalink
add asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jan 17, 2025
1 parent 589cace commit 91a6d79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function RpcBatchTestHandler:init_worker()
ngx.log(ngx.DEBUG, "kong.test.batch called: ", res)

kong.rpc:__set_batch(2)
kong.rpc:notify("control_plane", "kong.test.batch", "kong")
kong.rpc:notify("control_plane", "kong.test.batch", "gateway")
assert(kong.rpc:notify("control_plane", "kong.test.batch", "kong"))
assert(kong.rpc:notify("control_plane", "kong.test.batch", "gateway"))

ngx.log(ngx.DEBUG, "kong.test.batch ok")
end, "clustering:jsonrpc", "connected")
Expand Down

0 comments on commit 91a6d79

Please sign in to comment.