summaryrefslogtreecommitdiff
path: root/python/test
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2017-06-10 12:54:08 -0400
committerBernard Normier <bernard@zeroc.com>2017-06-10 12:54:08 -0400
commit7ed7846db196c59b52da8828d7a98188fac1cd3e (patch)
treed0f989740ab12d94a050b9b35993e22d912f8094 /python/test
parentRemove packages directory to ensure we get last builds packages when restore (diff)
downloadice-7ed7846db196c59b52da8828d7a98188fac1cd3e.tar.bz2
ice-7ed7846db196c59b52da8828d7a98188fac1cd3e.tar.xz
ice-7ed7846db196c59b52da8828d7a98188fac1cd3e.zip
Fixed C# and Python dispatcher test
Diffstat (limited to 'python/test')
-rw-r--r--python/test/Ice/dispatcher/AllTests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/test/Ice/dispatcher/AllTests.py b/python/test/Ice/dispatcher/AllTests.py
index 1b4be3d8c3f..789985229e4 100644
--- a/python/test/Ice/dispatcher/AllTests.py
+++ b/python/test/Ice/dispatcher/AllTests.py
@@ -88,6 +88,9 @@ def allTests(communicator, collocated):
to.sleepAsync(500).add_done_callback_async(cb.exceptionEx)
cb.check()
+ #
+ # Hold adapter to make sure invocations don't _complete_ synchronously
+ #
testController.holdAdapter()
if sys.version_info[0] == 2:
@@ -100,7 +103,7 @@ def allTests(communicator, collocated):
f = None
while True:
f = p.opWithPayloadAsync(seq)
- f.add_done_callback_async(cb.payload)
+ f.add_done_callback(cb.payload)
if not f.is_sent_synchronously():
break
testController.resumeAdapter()