Show errors when starting worker in tests

This commit is contained in:
Jake Howard 2018-12-14 21:48:49 +00:00
parent bedc434332
commit ea7f195d0a
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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()