Skip to content

Commit

Permalink
05-proxy/02-router_spec.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Sep 19, 2024
1 parent 5367490 commit c854a27
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions spec/02-integration/05-proxy/02-router_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2673,24 +2673,7 @@ end
-- http expression 'http.queries.*'
do
local function reload_router(flavor)
_G.kong = {
configuration = {
router_flavor = flavor,
},
}

helpers.setenv("KONG_ROUTER_FLAVOR", flavor)

package.loaded["spec.helpers"] = nil
package.loaded["kong.global"] = nil
package.loaded["kong.cache"] = nil
package.loaded["kong.db"] = nil
package.loaded["kong.db.schema.entities.routes"] = nil
package.loaded["kong.db.schema.entities.routes_subschemas"] = nil

helpers = require "spec.helpers"

helpers.unsetenv("KONG_ROUTER_FLAVOR")
helpers = require("spec.internal.module").reload_helpers(flavor)
end


Expand Down

0 comments on commit c854a27

Please sign in to comment.