summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorThais Siqueira <thais.siqueira@gmail.com>2016-08-26 15:22:21 -0300
committerThais Siqueira <thais.siqueira@gmail.com>2016-08-26 15:22:21 -0300
commitd107dd9fa0f5d837adb952fb8cb3f8b3b0b9804c (patch)
treec0acd6989ea7efc3bfef8fadb1ea891c507836c2 /service
parent2d4d7d627e85c249f3ec0f16d58159647b99e779 (diff)
Corrected the patch to measure returnValue on inlineCallbacks
The inlineCallback returnValue has a different logic using exceptions, the way we measured before, we were getting the time of the whole deferred chain (including all the callbacks) instead of exclusively the timing of the last yield up to the returnValue call.
Diffstat (limited to 'service')
-rw-r--r--service/test/reactor/defer.patch10
1 files changed, 6 insertions, 4 deletions
diff --git a/service/test/reactor/defer.patch b/service/test/reactor/defer.patch
index 296112f4..06f49706 100644
--- a/service/test/reactor/defer.patch
+++ b/service/test/reactor/defer.patch
@@ -43,9 +43,11 @@
> if currentItem:
> clock.stop('deferred')
>
-1123a1160,1161
+1123a1160
> currentThreadId = threading.current_thread().ident
-> c = Clock("%s in thread %d" % (str(g.gi_code), currentThreadId))
-1175a1214,1215
-> finally:
+1127a1165
+> c = Clock("%s in thread %d" % (str(g.gi_code), currentThreadId))
+1128a1167
+> c.stop('inlineCallback')
+1133a1173
> c.stop('inlineCallback')