Commit 2b6466c0 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

wip

parent d38c7287
...@@ -174,9 +174,9 @@ class RunPromise(GenericPromise): ...@@ -174,9 +174,9 @@ class RunPromise(GenericPromise):
u'result': { u'result': {
u'failed': False, u'message': u'success', u'type': u'Test Result' u'failed': False, u'message': u'success', u'type': u'Test Result'
}, },
u'execution-time': 0.05,
u'path': u'%s/my_second_promise.py' % self.promise_dir, u'path': u'%s/my_second_promise.py' % self.promise_dir,
} }
self.assertIsNotNone(second_result.pop(u'execution-time', None))
self.assertEqual(expected_result, second_result) self.assertEqual(expected_result, second_result)
def test_promise_generic_failed(self): def test_promise_generic_failed(self):
......
...@@ -197,6 +197,7 @@ class CheckUrlAvailableMixin(TestPromisePluginMixin): ...@@ -197,6 +197,7 @@ class CheckUrlAvailableMixin(TestPromisePluginMixin):
def tearDownClass(cls): def tearDownClass(cls):
cls.server_process.terminate() cls.server_process.terminate()
cls.server_process.join() cls.server_process.join()
if six.PY3:
# In Py3, the server socket does not seem to be automatically closed. # In Py3, the server socket does not seem to be automatically closed.
cls.server_process._target.__self__.socket.close() cls.server_process._target.__self__.socket.close()
for p in [ for p in [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment