diff options
| author | Wesley Moore <wes@wezm.net> | 2016-11-26 18:15:49 +1100 |
|---|---|---|
| committer | Wesley Moore <wes@wezm.net> | 2016-12-13 08:41:57 +1100 |
| commit | 517fce08c56186e060f2b67fc4d85484164f31b4 (patch) | |
| tree | 5911afb6b9710935e80ceaafc479f8116096383f | |
| parent | 6483bdd860fd89fc68846d4cc94c7ae3307a84c1 (diff) | |
Simplify notes on testing and concurrency
| -rw-r--r-- | src/doc/book/testing.md | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/doc/book/testing.md b/src/doc/book/testing.md index ebeb9923197..96cec7295aa 100644 --- a/src/doc/book/testing.md +++ b/src/doc/book/testing.md @@ -589,11 +589,10 @@ please see the [Documentation chapter](documentation.html). # Testing and concurrency -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. +It is important to note that tests are run concurrently using threads. For this +reason, care should be taken to ensure your tests do 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 |
