mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
cb6c19749d
The parallel test runner uses multiple workers to distribute the workload. These workers are assigned a worker ID using a globally incremented variable, which determines what test database to connect to. When the worker ID surpasses the test database IDs Django will crash. This reduce likelihood of crashing parallel tests because ParallelTestSuite will no longer create more workers than TestCases. It won't eliminate the problem completely though because there are other circumstances in which new workers can be created which can then be assigned an "illegal" worker ID. |
||
---|---|---|
.. | ||
__init__.py | ||
models.py | ||
runner.py | ||
test_debug_sql.py | ||
test_discover_runner.py | ||
test_parallel.py | ||
tests.py |