Kong / kong

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

tests(dns): flakiness due to hook conflict #13298

Closed StarlightIbuki closed 2 days ago

StarlightIbuki commented 1 week ago

Summary

The test suits hook the query function and uses a shared variable to change the hook. This causes conflicts when test A has an aysnc query still running, and B swaps the hook function, so the function will be called more than expected times.

Checklist

Issue reference

Fix KAG-4519

team-gateway-bot commented 2 days ago

Successfully created cherry-pick PR for master: