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 @@ -1158,7 +1158,7 @@ def test_negative_age(self) -> None:
1158
1158
}
1159
1159
)
1160
1160
class DatabaseWorkerProcessTestCase (TransactionTestCase ):
1161
- WORKER_STARTUP_TIME = 0.5
1161
+ WORKER_STARTUP_TIME = 1
1162
1162
1163
1163
def setUp (self ) -> None :
1164
1164
self .processes : List [subprocess .Popen ] = []
@@ -1169,7 +1169,7 @@ def tearDown(self) -> None:
1169
1169
for process in self .processes :
1170
1170
if process .poll () is None :
1171
1171
process .kill ()
1172
- time .sleep (0.01 )
1172
+ time .sleep (0.1 )
1173
1173
1174
1174
def start_worker (
1175
1175
self , args : Optional [List [str ]] = None , debug : bool = False
@@ -1336,7 +1336,7 @@ def test_multiple_workers(self) -> None:
1336
1336
1337
1337
for process in self .processes :
1338
1338
process .terminate ()
1339
- process .wait (timeout = 3 )
1339
+ process .wait (timeout = 5 )
1340
1340
self .assertIsNotNone (process .returncode )
1341
1341
1342
1342
for result in results :
You can’t perform that action at this time.
0 commit comments