From ef051b8d6b8a22bde621ce32108449a1512846a5 Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Tue, 23 Oct 2012 06:42:00 +0000
Subject: [PATCH] fixing ServiceFinderTimeoutTest

SVN: 27317
---
 .../common/api/client/ServiceFinderTimeoutTest.java        | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/openbis-common/sourceTest/java/ch/systemsx/cisd/openbis/common/api/client/ServiceFinderTimeoutTest.java b/openbis-common/sourceTest/java/ch/systemsx/cisd/openbis/common/api/client/ServiceFinderTimeoutTest.java
index 40e6ddb5706..04f5c8977f5 100644
--- a/openbis-common/sourceTest/java/ch/systemsx/cisd/openbis/common/api/client/ServiceFinderTimeoutTest.java
+++ b/openbis-common/sourceTest/java/ch/systemsx/cisd/openbis/common/api/client/ServiceFinderTimeoutTest.java
@@ -61,12 +61,10 @@ public class ServiceFinderTimeoutTest extends AssertJUnit
     public void testTimeout()
     {
         ServiceFinder finder = new ServiceFinder("", "");
-        ITestInterace remoteService =
-                finder.createService(ITestInterace.class, "http://localhost:" + server.getPort(),
-                        ONE_SECOND_TIMEOUT);
         try
         {
-            remoteService.timeoutProvokingMethod();
+            finder.createService(ITestInterace.class, "http://localhost:" + server.getPort(),
+                    ONE_SECOND_TIMEOUT);
             fail("Timeout exception expected");
         } catch (RemoteAccessException rae)
         {
@@ -108,6 +106,7 @@ public class ServiceFinderTimeoutTest extends AssertJUnit
         {
             serverSocket = new ServerSocket(0);
             serverSocket.setSoTimeout(1000);
+            System.out.println("ServiceFinderTimeoutTest.NotRespondingServer.runInternal() "+serverSocket);
 
             while (keepRunning.get())
             {
-- 
GitLab