-
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
tests(clustering): enable rpc sync on test #14171
base: master
Are you sure you want to change the base?
Conversation
describe("in hybrid mode" .. " rpc_sync=" .. rpc_sync, function() | ||
local route | ||
local plugin_name = "correlation-id" | ||
local bp, db = helpers.get_db_utils(strategy, { "plugins", "workspaces", }) |
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.
copy from LINE34
9808629
to
b28f375
Compare
lazy_setup(function() | ||
-- copy from outer lazy_setup, to avoid database reused. |
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.
Need more words to explain why and how it works.
lazy_setup(function() | ||
-- if the database is not cleared, the residual RPC connection information between different tests will cause the test to fail. |
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.
long line, should break it into two lines.
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.
Do we have any other simple way to clear the db?
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.
Clearing data and then recreating a new database is more dirty.
Co-authored-by: Chrono <[email protected]>
Co-authored-by: Chrono <[email protected]>
d55beef
to
b9bde94
Compare
76f5bac
to
579a57c
Compare
Summary
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Fix KAG-5561