Skip to content

Commit

Permalink
Auto merge of rust-lang#11210 - epage:publish, r=weihanglo
Browse files Browse the repository at this point in the history
refactor(tests): Prepare for wait-for-publish test changes

In rust-lang#11062, we are updating `cargo publish` to wait until a package is published.   The problem is a lot of our tests will block until the timeout.  In finding the tests to update, I was originally relying on test failures from the extra output when timing out.  The problem is not all tests verify the test output so they don't fail.

This tries to update the tests to make the introduction of a timeout more obvious.
- Adding `with_stderr` where it wasn't before
- Moving away from `with_stderr_contains` for publish tests

To help with that, I made the predicates on cargo commands more consistent.

I also moved descriptions of tests to be outside of the test so I can more easily document the `registry::init` calls with what we are doing.
  • Loading branch information
bors committed Oct 11, 2022
2 parents 8e740bb + 08df53b commit 83a1f66
Showing 1 changed file with 168 additions and 22 deletions.
Loading

0 comments on commit 83a1f66

Please sign in to comment.