Skip to content

Use local server for download tests#99

Merged
cdwensley merged 2 commits into
masterfrom
mh/custom-http-server
Jul 18, 2026
Merged

Use local server for download tests#99
cdwensley merged 2 commits into
masterfrom
mh/custom-http-server

Conversation

@fingolfin

@fingolfin fingolfin commented Jul 17, 2026

Copy link
Copy Markdown
Member

Replace live network assertions with a forked HTTP server provided by
the IO test dependency. Teach the SingleHTTPRequest adapter to handle
explicit ports so every backend can use the ephemeral local address.

Keep the public HTTPS transcript as non-executable documentation.

Co-authored-by: Codex codex@openai.com

Closes #97

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.56%. Comparing base (c89de00) to head (415435a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #99      +/-   ##
==========================================
+ Coverage   85.21%   85.56%   +0.34%     
==========================================
  Files          32       32              
  Lines        1867     1905      +38     
==========================================
+ Hits         1591     1630      +39     
+ Misses        276      275       -1     
Files with missing lines Coverage Δ
lib/download.gi 86.50% <100.00%> (+3.78%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fingolfin

Copy link
Copy Markdown
Member Author

This should be much more reliable

CC @ThomasBreuer @cdwensley

Replace live network assertions with a forked HTTP server provided by
the IO test dependency. Teach the SingleHTTPRequest adapter to handle
explicit ports so every backend can use the ephemeral local address.

Keep the public HTTPS transcript as non-executable documentation.

Co-authored-by: Codex <codex@openai.com>
@fingolfin
fingolfin force-pushed the mh/custom-http-server branch from 095e711 to 4ef18fb Compare July 17, 2026 21:32
Exercise URLs without paths, authority-only fragments, and malformed
authorities in the SingleHTTPRequest adapter tests.

Co-authored-by: Codex <codex@openai.com>
@fingolfin

Copy link
Copy Markdown
Member Author

Assuming the tests are (again) green this can should be merged. Then afterwards I can update PR #98

@cdwensley
cdwensley merged commit 0486034 into master Jul 18, 2026
8 checks passed
@cdwensley
cdwensley deleted the mh/custom-http-server branch July 18, 2026 09:24
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.

2 participants