diff options
Diffstat (limited to 'demoscript/Ice/async.py')
-rwxr-xr-x | demoscript/Ice/async.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/demoscript/Ice/async.py b/demoscript/Ice/async.py index aa1449db294..122d425d531 100755 --- a/demoscript/Ice/async.py +++ b/demoscript/Ice/async.py @@ -8,7 +8,8 @@ # # ********************************************************************** -import pexpect, sys +import sys +import demoscript.pexpect as pexpect def run(client, server): print "testing client... ", @@ -29,11 +30,9 @@ def run(client, server): sys.stdout.flush() client.sendline('d') client.sendline('s') - server.expect(pexpect.EOF) - assert server.wait() == 0 + server.waitTestSuccess() client.expect('RequestCanceledException') client.sendline('x') - client.expect(pexpect.EOF) - assert client.wait() == 0 + client.waitTestSuccess() print "ok" |