-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was preventing us from publishing to crates.io. The test_fixtures directory was moved into a test project. The tests that use those fixtures now change directory during the test. This is a problem for other tests which expect to be in the normal directory or at least not change mid test. To deal with that, and to prevent developers from needing to run tests with RUST_TEST_THREADS=1, each test takes a shared lock to synchronize them. In an ideal world, the test threads flag would just be an option in Cargo.toml, or something like rust-lang/rust#33519 would exist.
- Loading branch information
Showing
10 changed files
with
274 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "test_project" | ||
version = "0.1.0" | ||
authors = ["Joe Wilm <joe@jwilm.com>"] | ||
|
||
[dependencies] | ||
test_fixtures = { path = "./test_fixtures" } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#[cfg(test)] | ||
mod tests { | ||
#[test] | ||
fn it_works() { | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.