summaryrefslogtreecommitdiff
path: root/demoscript/Ice/callback.py
diff options
context:
space:
mode:
Diffstat (limited to 'demoscript/Ice/callback.py')
-rwxr-xr-xdemoscript/Ice/callback.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/demoscript/Ice/callback.py b/demoscript/Ice/callback.py
index c90d048c06d..2e7394c4a49 100755
--- a/demoscript/Ice/callback.py
+++ b/demoscript/Ice/callback.py
@@ -8,7 +8,8 @@
#
# **********************************************************************
-import pexpect, sys
+import sys
+import demoscript.pexpect as pexpect
def runtests(client, server, secure):
print "testing twoway",
@@ -66,9 +67,7 @@ def run(client, server):
runtests(client, server, True)
client.sendline('s')
- server.expect(pexpect.EOF)
- assert server.wait() == 0
+ server.waitTestSuccess()
client.sendline('x')
- client.expect(pexpect.EOF)
- assert client.wait() == 0
+ client.waitTestSuccess()