diff options
author | Jose <jose@zeroc.com> | 2018-08-06 11:56:42 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-08-06 11:56:42 +0200 |
commit | 7972f07a3aa244dcde673b7cb5541e70da9193bb (patch) | |
tree | 117faced1bb36ac256c7d362e11ac1c49e8e8c88 /python/test/Ice/operations/AllTests.py | |
parent | Update JavaScript tests to use TestHelper class (diff) | |
download | ice-7972f07a3aa244dcde673b7cb5541e70da9193bb.tar.bz2 ice-7972f07a3aa244dcde673b7cb5541e70da9193bb.tar.xz ice-7972f07a3aa244dcde673b7cb5541e70da9193bb.zip |
Python test suite updates
Diffstat (limited to 'python/test/Ice/operations/AllTests.py')
-rw-r--r-- | python/test/Ice/operations/AllTests.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/python/test/Ice/operations/AllTests.py b/python/test/Ice/operations/AllTests.py index fdd81e0808c..b63362ff341 100644 --- a/python/test/Ice/operations/AllTests.py +++ b/python/test/Ice/operations/AllTests.py @@ -14,8 +14,8 @@ def test(b): if not b: raise RuntimeError('test assertion failed') -def allTests(communicator): - ref = "test:default -p 12010" +def allTests(helper, communicator): + ref = "test:{0}".format(helper.getTestEndpoint()) base = communicator.stringToProxy(ref) cl = Test.MyClassPrx.checkedCast(base) derived = Test.MyDerivedClassPrx.checkedCast(cl) @@ -70,4 +70,11 @@ def allTests(communicator): BatchOnewaysAMI.batchOneways(derived) print("ok") - return cl + sys.stdout.write("testing server shutdown... ") + sys.stdout.flush() + cl.shutdown() + try: + cl.ice_timeout(100).ice_ping() # Use timeout to speed up testing on Windows + test(False) + except Ice.LocalException: + print("ok") |