Skip to content

Commit

Permalink
Rollup merge of rust-lang#38112 - tarka:book-testing-fix, r=steveklabnik
Browse files Browse the repository at this point in the history
Minor fix to testing concurrency section
  • Loading branch information
frewsxcv authored Dec 3, 2016
2 parents fa1af0c + d950ca1 commit 3231641
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/doc/book/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,11 @@ please see the [Documentation chapter](documentation.html).

# Testing and concurrency

One thing that is important to note when writing tests are run concurrently
using threads. For this reason you should take care that your tests are written
in such a way as to not depend on each-other, or on any shared state. "Shared
state" can also include the environment, such as the current working directory,
or environment variables.
One thing that is important to note when writing tests is that they may be run
concurrently using threads. For this reason you should take care that your tests
are written in such a way as to not depend on each-other, or on any shared
state. "Shared state" can also include the environment, such as the current
working directory, or environment variables.

If this is an issue it is possible to control this concurrency, either by
setting the environment variable `RUST_TEST_THREADS`, or by passing the argument
Expand Down

0 comments on commit 3231641

Please sign in to comment.