Kong / kong

🦍 The Cloud-Native API Gateway and AI Gateway.
https://konghq.com/install/#kong-community
Apache License 2.0
38.97k stars 4.78k forks source link

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

Closed nowNick closed 3 months ago

nowNick commented 3 months ago

Summary

After merging: https://github.com/Kong/kong/pull/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

Issue reference

KAG-4515

team-gateway-bot commented 3 months ago

Successfully created cherry-pick PR for master: