1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests/test_runner
Ceesjan Luiten cb6c19749d Refs #27734 -- Prevented creation of more parallel workers than TestCases.
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.
2021-06-10 07:32:15 +02:00
..
__init__.py
models.py
runner.py
test_debug_sql.py Fixed #32227 -- Prevented crash when setUpTestData() errors with --debug-sql. 2020-11-28 12:22:59 +01:00
test_discover_runner.py Refs #27734 -- Prevented creation of more parallel workers than TestCases. 2021-06-10 07:32:15 +02:00
test_parallel.py Fixed RemoteTestResultTest tests without tblib. 2021-03-25 10:33:54 +01:00
tests.py Fixed #32529 -- Delayed creating a test suite in build_suite(). 2021-03-11 10:02:06 +01:00