Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangfucheng committed May 17, 2023
1 parent 3716963 commit 3f344a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions t/plugin/splunk-hec-logging.t
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ passed
=== TEST 10: hit
--- ONLY
--- extra_init_by_lua
local core = require("apisix.core")
local decode = require("toolkit.json").decode
Expand All @@ -361,9 +362,9 @@ passed
local data = ngx.req.get_body_data()
ngx.log(ngx.WARN, data)
data = decode(data)
assert(data[1].event.vip == "127.0.0.1")
assert(data[1].source == "apache-apisix-splunk-hec-logging")
assert(data[1].host == core.utils.gethostname())
assert(data.event.vip == "127.0.0.1")
assert(data.source == "apache-apisix-splunk-hec-logging")
assert(data.host == core.utils.gethostname())
ngx.say('{}')
end
--- request
Expand Down

0 comments on commit 3f344a8

Please sign in to comment.