diff options
Diffstat (limited to 'cs/test/Ice/operations/BatchOneways.cs')
-rw-r--r-- | cs/test/Ice/operations/BatchOneways.cs | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/cs/test/Ice/operations/BatchOneways.cs b/cs/test/Ice/operations/BatchOneways.cs index 1545fd6d972..6c9100c506d 100644 --- a/cs/test/Ice/operations/BatchOneways.cs +++ b/cs/test/Ice/operations/BatchOneways.cs @@ -21,58 +21,58 @@ class BatchOneways internal static void batchOneways(Test.MyClassPrx p) { - byte[] tbs1 = new byte[10 * 1024]; - byte[] tbs2 = new byte[99 * 1024]; - byte[] tbs3 = new byte[100 * 1024]; - Test.ByteS bs1 = new Test.ByteS(tbs1); - Test.ByteS bs2 = new Test.ByteS(tbs2); - Test.ByteS bs3 = new Test.ByteS(tbs3); + byte[] tbs1 = new byte[10 * 1024]; + byte[] tbs2 = new byte[99 * 1024]; + byte[] tbs3 = new byte[100 * 1024]; + Test.ByteS bs1 = new Test.ByteS(tbs1); + Test.ByteS bs2 = new Test.ByteS(tbs2); + Test.ByteS bs3 = new Test.ByteS(tbs3); - try + try { p.opByteSOneway(bs1); - test(true); + test(true); + } + catch(Ice.MemoryLimitException) + { + test(false); } - catch(Ice.MemoryLimitException) - { - test(false); - } - try + try { p.opByteSOneway(bs2); - test(true); + test(true); + } + catch(Ice.MemoryLimitException) + { + test(false); } - catch(Ice.MemoryLimitException) - { - test(false); - } - try + try { p.opByteSOneway(bs3); - test(false); + test(false); + } + catch(Ice.MemoryLimitException) + { + test(true); } - catch(Ice.MemoryLimitException) - { - test(true); - } - Test.MyClassPrx batch = Test.MyClassPrxHelper.uncheckedCast(p.ice_batchOneway()); + Test.MyClassPrx batch = Test.MyClassPrxHelper.uncheckedCast(p.ice_batchOneway()); - for(int i = 0 ; i < 30 ; ++i) - { - try - { - batch.opByteSOneway(bs1); - test(true); - } - catch(Ice.MemoryLimitException) - { - test(false); - } - } + for(int i = 0 ; i < 30 ; ++i) + { + try + { + batch.opByteSOneway(bs1); + test(true); + } + catch(Ice.MemoryLimitException) + { + test(false); + } + } - batch.ice_getConnection().flushBatchRequests(); + batch.ice_getConnection().flushBatchRequests(); } } |