Commit 76b353fa authored by Rafael Monnerat's avatar Rafael Monnerat

execution-time decreased to 0.5 at slapos.core

parent 91bf2ff6
...@@ -158,7 +158,7 @@ class RunPromise(GenericPromise): ...@@ -158,7 +158,7 @@ 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.1, u'execution-time': 0.05,
u'path': u'%s/my_promise.py' % self.promise_dir, u'path': u'%s/my_promise.py' % self.promise_dir,
} }
self.assertEqual(expected_result, my_result) self.assertEqual(expected_result, my_result)
...@@ -173,7 +173,7 @@ class RunPromise(GenericPromise): ...@@ -173,7 +173,7 @@ 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.1, 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.assertEqual(expected_result, second_result) self.assertEqual(expected_result, second_result)
...@@ -194,7 +194,7 @@ class RunPromise(GenericPromise): ...@@ -194,7 +194,7 @@ class RunPromise(GenericPromise):
u'result': { u'result': {
u'failed': True, u'message': u'failed', u'type': u'Test Result' u'failed': True, u'message': u'failed', u'type': u'Test Result'
}, },
u'execution-time': 0.1, u'execution-time': 0.05,
u'path': u'%s/my_promise.py' % self.promise_dir, u'path': u'%s/my_promise.py' % self.promise_dir,
} }
self.assertEqual(expected_result, my_result) self.assertEqual(expected_result, my_result)
...@@ -215,7 +215,7 @@ class RunPromise(GenericPromise): ...@@ -215,7 +215,7 @@ class RunPromise(GenericPromise):
u'result': { u'result': {
u'failed': True, u'message': u'failed', u'type': u'Test Result' u'failed': True, u'message': u'failed', u'type': u'Test Result'
}, },
u'execution-time': 0.1, u'execution-time': 0.05,
u'path': u'%s/my_promise.py' % self.promise_dir, u'path': u'%s/my_promise.py' % self.promise_dir,
} }
self.assertEqual(expected_result, my_result) self.assertEqual(expected_result, my_result)
...@@ -234,7 +234,7 @@ class RunPromise(GenericPromise): ...@@ -234,7 +234,7 @@ 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.1, u'execution-time': 0.05,
u'path': u'%s/my_promise.py' % self.promise_dir, u'path': u'%s/my_promise.py' % self.promise_dir,
} }
self.assertEqual(expected_result, my_result) self.assertEqual(expected_result, my_result)
...@@ -295,7 +295,7 @@ class RunPromise(GenericPromise): ...@@ -295,7 +295,7 @@ 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.1, u'execution-time': 0.05,
u'path': u'%s' % promise, u'path': u'%s' % promise,
} }
...@@ -327,7 +327,7 @@ class RunPromise(GenericPromise): ...@@ -327,7 +327,7 @@ 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.1, u'execution-time': 0.05,
u'path': u'%s' % promise, u'path': u'%s' % promise,
} }
self.assertEqual(expected_result, result1) self.assertEqual(expected_result, result1)
...@@ -340,7 +340,7 @@ class RunPromise(GenericPromise): ...@@ -340,7 +340,7 @@ 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.1, u'execution-time': 0.05,
u'path': u'%s' % promise2, u'path': u'%s' % promise2,
} }
self.assertEqual(expected_result, result2) self.assertEqual(expected_result, result2)
...@@ -360,7 +360,7 @@ class RunPromise(GenericPromise): ...@@ -360,7 +360,7 @@ class RunPromise(GenericPromise):
u'result': { u'result': {
u'failed': True, u'message': u'failed', u'type': u'Test Result' u'failed': True, u'message': u'failed', u'type': u'Test Result'
}, },
u'execution-time': 0.1, u'execution-time': 0.05,
u'path': u'%s' % promise, u'path': u'%s' % promise,
} }
self.assertEqual(expected_result, result1) self.assertEqual(expected_result, result1)
...@@ -387,7 +387,7 @@ class RunPromise(GenericPromise): ...@@ -387,7 +387,7 @@ 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.1, u'execution-time': 0.05,
u'path': u'%s' % promise, u'path': u'%s' % promise,
} }
self.assertEqual(expected_result, result1) self.assertEqual(expected_result, result1)
......
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