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

url_file: fix non-200 files being cached #30886

Merged
merged 4 commits into from
Jan 2, 2024
Merged

Conversation

jnewb1
Copy link
Contributor

@jnewb1 jnewb1 commented Jan 2, 2024

non-200 responses seem to be cached after pycurl removal here: #30771

noticed when doing a car port to test the non-azure route stuff #30828

@github-actions github-actions bot added the tools label Jan 2, 2024

patch_length = mock.patch.object(URLFile, "get_length_online", get_length_online_mock)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

old test just mocked the get_length function, to force a -1 response, new test does a full mock of a web server as a more E2E test

tools/lib/url_file.py Outdated Show resolved Hide resolved
jnewb1 and others added 2 commits January 2, 2024 12:09
Co-authored-by: Shane Smiskol <[email protected]>
@jnewb1 jnewb1 marked this pull request as ready for review January 2, 2024 20:39
@jnewb1 jnewb1 merged commit fba521e into master Jan 2, 2024
25 checks passed
@jnewb1 jnewb1 deleted the filereader-dont-cache-bad branch January 2, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants