Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jul 1, 2025

This pull request fixes a flaky rate limit test by replacing unreliable thread sleep with direct database timestamp manipulation. The test was previously using thread::sleep() to wait for the rate limit to expire, which could cause intermittent failures in CI environments with timing variations. The solution directly resets the rate limit timestamp in the database, making the test deterministic and more reliable.

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Jul 1, 2025
@Turbo87 Turbo87 enabled auto-merge (squash) July 1, 2025 13:26
@Turbo87 Turbo87 merged commit e18cacb into rust-lang:main Jul 1, 2025
10 checks passed
@Turbo87 Turbo87 deleted the rate-limit-flakes branch July 1, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant