-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(healthchecks) fix flaky healthcheck test
The regression test for issue #3304 was flaky because it launches two Kong nodes and it waited for the second one to be ready by reading the logs. This is not a reliable way of determining if a node is immediately ready to proxy a configured route. Reversing the order of proxy calls in the test made it fail more consistently, which helped debugging the issue. This changes the check to verify if the router has been rebuilt, using a dummy route for triggering the routing rebuild before the proper test starts. (Thanks @thibaultcha for the idea!) The changes are also backported to `spec-old-api/`.
- Loading branch information
Showing
3 changed files
with
75 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters