Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[10.x] Fix flakey HttpClientTest test #48166

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

@taylorotwell taylorotwell merged commit 0a0c1de into laravel:10.x Aug 25, 2023
20 checks passed
@joshbonnick joshbonnick deleted the patch-1 branch August 25, 2023 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants