Add timeout to starting worker
This commit is contained in:
parent
b184038cc4
commit
697c8cb6eb
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,7 @@ class BaseWorkerTestCase(BaseTestCase):
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
universal_newlines=True,
|
universal_newlines=True,
|
||||||
|
timeout=10,
|
||||||
)
|
)
|
||||||
self.assertEqual(result.returncode, 0, result.stdout)
|
self.assertEqual(result.returncode, 0, result.stdout)
|
||||||
|
|
||||||
|
@ -44,6 +45,7 @@ class BaseWorkerTestCase(BaseTestCase):
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
universal_newlines=True,
|
universal_newlines=True,
|
||||||
|
timeout=10,
|
||||||
)
|
)
|
||||||
self.assertEqual(result.returncode, 0, result.stdout)
|
self.assertEqual(result.returncode, 0, result.stdout)
|
||||||
super().tearDown()
|
super().tearDown()
|
||||||
|
|
Reference in a new issue