Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #11356 - arlosi:sparse-publish, r=epage
Fix wait-for-publish with sparse registry The `wait-for-publish` feature doesn't work when publishing a new version of an existing crate on a sparse registry. The `invalidate_cache` method doesn't clear the `fresh` list, so repeated requests just use the in-memory data if it's available. This didn't show up in the tests, because the test only simulated the `not found` to `crate available` transition, rather than the `old file` to `crate available` transition. This change modifies the test by capturing the publish request, then deferring it until after later request for the index file. r? `@epage` Fixes #11314
- Loading branch information