diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-06-08 14:54:10 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-06-08 14:54:10 +0200 |
commit | 8696670b40a7c46fad9e0a0ad05e92e0d6437e09 (patch) | |
tree | fc7ffcca2d61622857dbd56de0fddc621da30412 | |
parent | Fixed ICE-7994 - invocation metrics issue with AMI batch oneway requests (diff) | |
download | ice-8696670b40a7c46fad9e0a0ad05e92e0d6437e09.tar.bz2 ice-8696670b40a7c46fad9e0a0ad05e92e0d6437e09.tar.xz ice-8696670b40a7c46fad9e0a0ad05e92e0d6437e09.zip |
Added JS & Objective-C tests for AMI batch invocations
-rw-r--r-- | js/test/Ice/ami/Client.js | 4 | ||||
-rw-r--r-- | objective-c/test/Ice/ami/AllTests.m | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/js/test/Ice/ami/Client.js b/js/test/Ice/ami/Client.js index 6bae556a65c..5f3a2decfb7 100644 --- a/js/test/Ice/ami/Client.js +++ b/js/test/Ice/ami/Client.js @@ -71,7 +71,9 @@ { test(count === 0); b1 = p.ice_batchOneway(); - test(b1.opBatch()); + bf = b1.opBatch(); + test(bf.isCompleted()); + test(!bf.isSent()); test(b1.opBatch()); return b1.ice_flushBatchRequests(); } diff --git a/objective-c/test/Ice/ami/AllTests.m b/objective-c/test/Ice/ami/AllTests.m index d097ce71f70..ebecf494d47 100644 --- a/objective-c/test/Ice/ami/AllTests.m +++ b/objective-c/test/Ice/ami/AllTests.m @@ -547,7 +547,9 @@ amiAllTests(id<ICECommunicator> communicator, BOOL collocated) { test([p opBatchCount] == 0); id<TestAMITestIntfPrx> b1 = [p ice_batchOneway]; - [b1 opBatch]; + id<ICEAsyncResult> br = [b1 begin_opBatch]; + test([br isCompleted]); + test(![br isSent]); [b1 opBatch]; TestAMICallback* cb = [TestAMICallback create]; id<ICEAsyncResult> r = [b1 begin_ice_flushBatchRequests:^(ICEException* ex) { test(NO); } |