-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(tests): make DB helpers imported on demand #13999
base: master
Are you sure you want to change the base?
Conversation
9cfe2a8
to
9967050
Compare
9967050
to
edf6f66
Compare
edf6f66
to
a2cf821
Compare
spec/helpers.lua
Outdated
@@ -29,6 +29,10 @@ local client = reload_module("spec.internal.client") | |||
local wait = reload_module("spec.internal.wait") | |||
|
|||
|
|||
-- redo the patches to make kong PDK available to timerng timers | |||
reload_module("kong.globalpatches")({ cli = true, rbusted = true, }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kong.globalpatches
is not intended to be reloadable because of how many global things it overwrites. That's why most of the tests on this branch are failing with a stack overflow.
@@ -29,6 +29,10 @@ local client = reload_module("spec.internal.client") | |||
local wait = reload_module("spec.internal.wait") | |||
|
|||
|
|||
-- redo the patches to make kong PDK available to timerng timers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain the context of "make kong PDK available to timerng timers", I don't quite get it.
This makes cmd helpers function available for env where no DB provided
a2cf821
to
784ad55
Compare
Summary
This decouples most of the helper functions from the database, making them available for env where no DB is provided
Issue reference
KAG-6002