Skip to content

Commit

Permalink
Update connect_redis_test.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
shukitchan authored Nov 4, 2024
1 parent 3094a19 commit 19130df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pluginats/connect_redis_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@

_G.ts = { client_request = {}, http = {} }
_G.client = {dbone = {}, dbdefault = {}, selecteddb = 0}
_G.snippet_enabled = false
_G.TS_LUA_REMAP_DID_REMAP = 1

snippet_enabled = false

function ts.client_request.get_url_scheme()
return 'http'
end
Expand Down Expand Up @@ -113,6 +116,8 @@ describe("Unit tests - Lua", function()
client:sadd("trafficserver-test-2:appsvc1:8080","172.17.0.3#8080#http","172.17.0.5#8080#http")
--require 'pl.pretty'.dump(client)

snippet_enabled = false

stub(ts, "add_package_cpath")
stub(ts, "add_package_path")
stub(ts, "debug")
Expand Down

0 comments on commit 19130df

Please sign in to comment.