diff options
Diffstat (limited to 'csharp/test/Ice/exceptions/AllTests.cs')
-rw-r--r-- | csharp/test/Ice/exceptions/AllTests.cs | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/csharp/test/Ice/exceptions/AllTests.cs b/csharp/test/Ice/exceptions/AllTests.cs index b0e7b109849..2627821fb7c 100644 --- a/csharp/test/Ice/exceptions/AllTests.cs +++ b/csharp/test/Ice/exceptions/AllTests.cs @@ -426,29 +426,40 @@ public class AllTests : TestCommon.AllTests catch(Ice.ConnectionLostException) { } + catch(Ice.UnknownLocalException) + { + // Expected with JS bidir server + } catch(Exception) { test(false); } - ThrowerPrx thrower2 = ThrowerPrxHelper.uncheckedCast( - communicator.stringToProxy("thrower:" + app.getTestEndpoint(1))); - try - { - thrower2.throwMemoryLimitException(new byte[2 * 1024 * 1024]); // 2MB (no limits) - } - catch(Ice.MemoryLimitException) - { - } - ThrowerPrx thrower3 = ThrowerPrxHelper.uncheckedCast( - communicator.stringToProxy("thrower:" + app.getTestEndpoint(2))); try { - thrower3.throwMemoryLimitException(new byte[1024]); // 1KB limit - test(false); + ThrowerPrx thrower2 = ThrowerPrxHelper.uncheckedCast( + communicator.stringToProxy("thrower:" + app.getTestEndpoint(1))); + try + { + thrower2.throwMemoryLimitException(new byte[2 * 1024 * 1024]); // 2MB (no limits) + } + catch(Ice.MemoryLimitException) + { + } + ThrowerPrx thrower3 = ThrowerPrxHelper.uncheckedCast( + communicator.stringToProxy("thrower:" + app.getTestEndpoint(2))); + try + { + thrower3.throwMemoryLimitException(new byte[1024]); // 1KB limit + test(false); + } + catch(Ice.ConnectionLostException) + { + } } - catch(Ice.ConnectionLostException) + catch(Ice.ConnectionRefusedException) { + // Expected with JS bidir server } WriteLine("ok"); |