File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1177,7 +1177,7 @@ def test_negative_age(self) -> None:
1177
1177
}
1178
1178
)
1179
1179
class DatabaseWorkerProcessTestCase (TransactionTestCase ):
1180
- WORKER_STARTUP_TIME = 0.5
1180
+ WORKER_STARTUP_TIME = 1
1181
1181
1182
1182
def setUp (self ) -> None :
1183
1183
self .processes : List [subprocess .Popen ] = []
@@ -1188,7 +1188,7 @@ def tearDown(self) -> None:
1188
1188
for process in self .processes :
1189
1189
if process .poll () is None :
1190
1190
process .kill ()
1191
- time .sleep (0.01 )
1191
+ time .sleep (0.1 )
1192
1192
1193
1193
def start_worker (
1194
1194
self , args : Optional [List [str ]] = None , debug : bool = False
@@ -1366,7 +1366,7 @@ def test_multiple_workers(self) -> None:
1366
1366
1367
1367
for process in self .processes :
1368
1368
process .terminate ()
1369
- process .wait (timeout = 3 )
1369
+ process .wait (timeout = 5 )
1370
1370
self .assertIsNotNone (process .returncode )
1371
1371
1372
1372
for result in results :
You can’t perform that action at this time.
0 commit comments