예제 #1
0
파일: AllTests.cs 프로젝트: skyccn/ice
 public override void runTestCase(Test.RemoteObjectAdapterPrx adapter, Test.TestIntfPrx proxy)
 {
     try
     {
         // When the OA is put on hold, connections shouldn't
         // send heartbeats, the invocation should therefore
         // fail.
         proxy.sleepAndHold(10);
         test(false);
     }
     catch (Ice.ConnectionTimeoutException)
     {
         adapter.activate();
         proxy.interruptSleep();
         waitForClosed();
     }
 }
예제 #2
0
파일: AllTests.cs 프로젝트: skyccn/ice
                public override void runTestCase(Test.RemoteObjectAdapterPrx adapter, Test.TestIntfPrx proxy)
                {
                    try
                    {
                        // Heartbeats are disabled on the server, the
                        // invocation should fail since heartbeats are
                        // expected.
                        proxy.sleep(10);
                        test(false);
                    }
                    catch (Ice.ConnectionTimeoutException)
                    {
                        proxy.interruptSleep();

                        waitForClosed();
                        lock (this)
                        {
                            test(_heartbeat == 0);
                        }
                    }
                }