Skip to content

[10.x] Fix flakey HttpClientTest test #48166

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Aug 25, 2023
Merged

Conversation

joshbonnick
Copy link
Contributor

Similar to #48156. This PR replaces the use of $startTime = microtime(true); with Sleep::fake().

The updated test in HttpClientTest was failing with the following:

Failed asserting that 0.33161306381225586 matches expected 0.3.

Expected: 0.3
Actual: 0.33161306381226

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants