Skip to content

fix: add sleep to fix flaky healthcheck cli test#12272

Merged
Revolyssup merged 1 commit into
apache:masterfrom
Revolyssup:revolyssup/fix-flaky
May 30, 2025
Merged

fix: add sleep to fix flaky healthcheck cli test#12272
Revolyssup merged 1 commit into
apache:masterfrom
Revolyssup:revolyssup/fix-flaky

Conversation

@Revolyssup

Copy link
Copy Markdown
Contributor

Description

Due to the CLI test introduced in recent standalone healthcheck PR, the CI is failing on master as well making the test flaky.
https://github.com/apache/apisix/actions/runs/15330643322/job/43165226189?pr=12263#step:7:7542
The reason is that /status/ready is being hit in test before all workers can be ready. This PR adds a 2 second sleep to make sure workers are ready.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels May 30, 2025
@Revolyssup
Revolyssup merged commit 9112923 into apache:master May 30, 2025
laz-xyr pushed a commit to laz-xyr/apisix that referenced this pull request Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants