Skip to content

Commit afc5853

Browse files
committed
Print troublesome processes
1 parent 9b45ab5 commit afc5853

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ jobs:
4545
run: just lint
4646
- name: Run fast tests
4747
if: ${{ !cancelled() }}
48-
run: just test-fast
48+
run: just test-fast -v2
4949
- name: Run tests
5050
if: ${{ !cancelled() }}
51-
run: just test
51+
run: just test -v2
5252

5353
test-postgres:
5454
runs-on: ubuntu-latest
@@ -82,7 +82,7 @@ jobs:
8282
pip install -e '.[dev,postgres]'
8383
pip install Django~=${{ matrix.django-version }}
8484
- name: Run tests
85-
run: just test
85+
run: just test -v2
8686
env:
8787
DATABASE_URL: postgres://postgres:postgres@localhost/postgres
8888

@@ -117,7 +117,7 @@ jobs:
117117
pip install -e '.[dev,mysql]'
118118
pip install Django~=${{ matrix.django-version }}
119119
- name: Run tests
120-
run: just test
120+
run: just test -v2
121121
env:
122122
DATABASE_URL: mysql://root:[email protected]/django
123123

tests/tests/test_database_backend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,9 +1291,11 @@ def setUp(self) -> None:
12911291

12921292
def tearDown(self) -> None:
12931293
# Try n times to kill any remaining child processes
1294-
for _ in range(10):
1294+
for n in range(20):
12951295
for process in self.processes:
12961296
if process.poll() is None:
1297+
if n >= 5:
1298+
print("Still waiting for process", process.pid, process.args) # noqa: T201
12971299
process.kill()
12981300
process.wait(1)
12991301

0 commit comments

Comments
 (0)