sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1636840 - /sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/it/ChaosTest.java
Date Wed, 05 Nov 2014 09:46:44 GMT
Author: cziegeler
Date: Wed Nov  5 09:46:43 2014
New Revision: 1636840

URL: http://svn.apache.org/r1636840
Log:
Correct setDaemon settings

Modified:
    sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/it/ChaosTest.java

Modified: sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/it/ChaosTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/it/ChaosTest.java?rev=1636840&r1=1636839&r2=1636840&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/it/ChaosTest.java
(original)
+++ sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/it/ChaosTest.java
Wed Nov  5 09:46:43 2014
@@ -196,7 +196,6 @@ public class ChaosTest extends AbstractJ
             this.jobManager = jobManager;
             this.created = created;
             this.finishedThreads = finishedThreads;
-            this.setDaemon(true);
         }
 
         @Override
@@ -281,7 +280,6 @@ public class ChaosTest extends AbstractJ
 
                 @Override
                 public void run() {
-                    this.setDaemon(true);
                     final long startTime = System.currentTimeMillis();
                     // this thread runs 30 seconds longer than the job creation thread
                     final long endTime = startTime + (DURATION +30) * 1000;
@@ -369,6 +367,7 @@ public class ChaosTest extends AbstractJ
             System.out.println("Starting threads...");
             // start threads
             for(final Thread t : threads) {
+                t.setDaemon(true);
                 t.start();
             }
 



Mime
View raw message