Skip to content

Commit

Permalink
Update flaky.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus authored May 24, 2024
1 parent b67dab9 commit 7be9ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/en/explanation/flaky.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ System state

Broadly speaking, a flaky test indicates that the test relies on some system state that is not being appropriately controlled - the test environment is not sufficiently isolated. Higher level tests are more likely to be flaky as they rely on more state.

Flaky tests sometimes appear when a test suite is run in parallel (such as use of pytest-xdist). This can indicate a test is reliant on test ordering.
Flaky tests sometimes appear when a test suite is run in parallel (such as use of `pytest-xdist`_). This can indicate a test is reliant on test ordering.

- Perhaps a different test is failing to clean up after itself and leaving behind data which causes the flaky test to fail.
- The flaky test is reliant on data from a previous test that doesn't clean up after itself, and in parallel runs that previous test is not always present
Expand Down

0 comments on commit 7be9ad4

Please sign in to comment.