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

Test server improvements #689

Closed
wants to merge 5 commits into from
Closed

Test server improvements #689

wants to merge 5 commits into from

Conversation

hadley
Copy link
Member

@hadley hadley commented Feb 14, 2025

  • Use manual syncing instead of sleeping
  • Automatically track number of calls

Fixes #683

hadley and others added 2 commits February 14, 2025 11:26
* Use manual syncing instead of sleeping
* Automatically track number of calls

Fixes #683
* fix sync logic in stream test

* safer url to avoid clashes
@hadley hadley added this to the v1.1.1 milestone Feb 17, 2025
@@ -60,84 +61,75 @@ test_that("can't read from a closed connection", {
})

test_that("can join lines across multiple reads", {
Copy link
Member Author

@hadley hadley Mar 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shikokuchuo would you mind taking another look at this for me? It currently takes ~16s seconds which seems suspiciously like every sync() call is timing out.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR #701 should fix the issue with the sync functions. It basically ensures that syncs don't time out because the connection itself has yet to be established.

However I'm now getting a curious "Transferred a partial file [127.0.0.1]: transfer closed with outstanding read data remaining" error on a couple of the tests e.g. at https://github.com/shikokuchuo/httr2/actions/runs/13676334149/job/38237554007#step:6:179

Note that this particular 'can join lines across multiple reads' test passes. So it might be that something needs amending on those tests.

@hadley hadley removed this from the v1.1.1 milestone Mar 5, 2025
@hadley hadley closed this Mar 5, 2025
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.

Eliminate Sys.sleep() in streaming tests
2 participants