Skip to content

Commit

Permalink
Use single threads for testing
Browse files Browse the repository at this point in the history
I actually couldn't find a reference to CARGO_TEST_THREADS in the
current cargo codebase, but RUST_TEST_THREADS is definitely correct.
This should reduce some spurious failures on some platforms.
  • Loading branch information
Susurrus committed Jul 3, 2017
1 parent 274b09e commit d2508e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sudo: required
env:
global:
- CRATE_NAME=nix
- CARGO_TEST_THREADS=1
- RUST_TEST_THREADS=1

matrix:
# These are all the build jobs. Adjust as necessary. Comment out what you
Expand Down
2 changes: 2 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build.env]
passthrough = ["RUST_TEST_THREADS"]

0 comments on commit d2508e3

Please sign in to comment.