Skip to content

Commit 7102c7d

Browse files
committed
fix async/bg tests cleanup
1 parent 84af3ec commit 7102c7d

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

tests/async_tests/utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,12 @@ def setup_background_callback_app(manager_name, app_name):
148148
manager.terminate_job(job)
149149

150150
# Wait for processes to actually terminate
151-
import time
152-
153151
for _ in range(10): # Wait up to 5 seconds
154152
if not manager.running_jobs:
155153
break
156154
time.sleep(0.5)
157155

158156
# Force cleanup with retry logic
159-
import os
160-
161157
for _ in range(5):
162158
try:
163159
shutil.rmtree(cache_directory, ignore_errors=False)

tests/background_callback/utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,12 @@ def setup_background_callback_app(manager_name, app_name):
151151
manager.terminate_job(job)
152152

153153
# Wait for processes to actually terminate
154-
import time
155-
156154
for _ in range(10): # Wait up to 5 seconds
157155
if not manager.running_jobs:
158156
break
159157
time.sleep(0.5)
160158

161159
# Force cleanup with retry logic
162-
import os
163-
164160
for _ in range(5):
165161
try:
166162
shutil.rmtree(cache_directory, ignore_errors=False)

0 commit comments

Comments
 (0)