Show errors when starting worker in tests
This commit is contained in:
parent
bedc434332
commit
ea7f195d0a
1 changed files with 4 additions and 4 deletions
|
@ -28,10 +28,10 @@ class BaseWorkerTestCase(BaseTestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super().setUp()
|
super().setUp()
|
||||||
self.unused_port = unused_port()
|
self.unused_port = unused_port()
|
||||||
self.assertEqual(
|
result = self.run_cli(["start", "--port", self.unused_port])
|
||||||
self.run_cli(["start", "--port", self.unused_port]).exit_code, 0
|
self.assertEqual(result.exit_code, 0, result.stdout)
|
||||||
)
|
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
self.assertEqual(self.run_cli(["stop"]).exit_code, 0)
|
result = self.run_cli(["stop"])
|
||||||
|
self.assertEqual(result.exit_code, 0, result.stdout)
|
||||||
super().tearDown()
|
super().tearDown()
|
||||||
|
|
Reference in a new issue