Skip to content
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

fix(core): should_warn checks if kong global has been defined #13310

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

nowNick
Copy link
Contributor

@nowNick nowNick commented Jun 27, 2024

Summary

After merging: #13069 it was revealed in some tests that kong global might not have been initialized yet. This PR checks first if kong global is defined as it's done in a few other places in this module. It's just to make sure unit test work.

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

KAG-4515

@github-actions github-actions bot added core/db schema-change-noteworthy cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Jun 27, 2024
@nowNick nowNick requested review from samugi and gszr June 27, 2024 15:59
@nowNick nowNick marked this pull request as ready for review June 27, 2024 16:00
@hanshuebner hanshuebner merged commit a9d9b9f into master Jun 28, 2024
53 of 55 checks passed
@hanshuebner hanshuebner deleted the fix/flaky-should-warn branch June 28, 2024 07:12
@team-gateway-bot
Copy link
Collaborator

Successfully created cherry-pick PR for master:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants