Print

Print


Commit in java/trunk/integration-tests/src/test/java/org/hps on MAIN
EtSystemTest.java+5-4731 -> 732
Increase wait time of getEvents() in order to give enough time for the EVIO file to be read.

java/trunk/integration-tests/src/test/java/org/hps
EtSystemTest.java 731 -> 732
--- java/trunk/integration-tests/src/test/java/org/hps/EtSystemTest.java	2014-06-23 01:38:25 UTC (rev 731)
+++ java/trunk/integration-tests/src/test/java/org/hps/EtSystemTest.java	2014-06-23 20:15:56 UTC (rev 732)
@@ -48,7 +48,7 @@
     static final String javaPath = System.getProperty("java.home") + File.separator + "bin" + File.separator + "java";        
     static final String etBuffer = "ETBuffer";
     static final int port = 11111;
-    static final int waitTime = 1000;
+    static final int waitTime = 50000000; /* Wait time in microseconds. */
     static final int chunkSize = 1;
     static List<Process> processes = new ArrayList<Process>();
     static final int minimumEventsExpected = 503000; 
@@ -255,9 +255,10 @@
                     eventsReceived += events.length;
                 }
             } catch (EtTimeoutException e) {
-                System.out.println("Caught timeout but will try again.");
-                e.printStackTrace();
-                continue;                
+                //System.out.println("Caught timeout but will try again.");
+                //e.printStackTrace();
+                //continue;
+                throw new RuntimeException("Timed out.", e);
             } catch (EOFException e) {
                 System.out.println("Caught end of file exception.  Probably ET ring went down!");
                 e.printStackTrace();
SVNspam 0.1