-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(tests): Clean up various bits in tests (#1145)
- Bump testdir to 0.8, we use multiple testdir!() calls inside a single test while expecting to get the same directory. This was not the case but now in 0.8 it is. - When transferring folders do not use testdir!() directly but a subdirectory. Using testdir!() directly ends up including e.g. the iroh_data_dir which should not really be included. - Simplify make_provider to not require home, all callers used testdir!() for that anyway. - Simplify match_provide_output since it did not use Input anyway. - Fix test_provide_get_loop to not go put the path inside $CARGO_MANIFEST_DIR/tests/fixtures since we do not store any test fixtures. We create all of them on the fly and put them inside testdir!(). I think we were always testing this with an empty directory before? - Improve assert_matches_line to not hide the errors from the reader. This is the error that is propagated from duct in case the provider fails, hiding this is rather confusing. Improves the error messages emitted there too by e.g. showing the failing regex instead of just say "EOF, *shrug*".
- Loading branch information
Showing
4 changed files
with
54 additions
and
59 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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