Skip to content

Commit

Permalink
Clarify docs for tests not marked as serial
Browse files Browse the repository at this point in the history
  • Loading branch information
torfsen committed Dec 25, 2021
1 parent c16b9ed commit 6b5aef0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ async fn test_serial_another() {
}
```
Multiple tests with the `serial` attribute are guaranteed to be executed in serial. Ordering of the tests is not guaranteed however.
Note that if you're using an async test reactor attribute (e.g. `tokio::test` or `actix_rt::test`) then they should be listed *before*
`serial`, otherwise we don't get an async function and things break. There's now an error for this case to improve debugging.
Tests without the `serial` attribute may run at any time, including in parallel to tests marked as `serial`. Note that if you're using
an async test reactor attribute (e.g. `tokio::test` or `actix_rt::test`) then they should be listed *before* `serial`, otherwise we
don't get an async function and things break. There's now an error for this case to improve debugging.

## Usage
We require at least Rust 1.39 for [async/await](https://blog.rust-lang.org/2019/11/07/Async-await-stable.html) support
Expand Down

0 comments on commit 6b5aef0

Please sign in to comment.