You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was wrongly removed as a duplicate but the code remained in
tests/unit and was never exercised.
The internal dns cache logic and API changed in the meantime so test is
also updated to reflect those.
Follow-up to 4ead428
Test 1041 failed, but it has been 0.7% flaky lately, so it's probably NOT a fault of the PR. Note that this test has failed in 12 different CI jobs (the link just goes to one of them). Note that this CI job has had a number of other flaky tests recently (3, to be specific) so it may be that this failure is rather a systemic issue with this job and not with this specific PR.
Reuse one multi handle and DNS cache across iterations
tests/unit/unit3271.c:102
This still creates and destroys multi inside every iteration (lines 121 and 204). Each multi owns its DNS cache, so the second case never sees the first entry and therefore tests two independent insertions rather than the advertised override. Keep one multi/cache alive across both iterations (removing each easy handle before cleanup), then destroy it after the loop.
The retrieved cache entry is only checked for its address and port, so the stated expiry/permanence regression can pass even if CURLOPT_RESOLVE leaves the replacement non-permanent. Seed the first shared-cache entry as non-permanent (using the + form), then assert dns->permanent is false before the replacement and true afterward.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It was wrongly removed as a duplicate but the code remained in tests/unit and was never exercised.
The internal dns cache logic and API changed in the meantime so test is also updated to reflect those.
Follow-up to 4ead428