Fix order of initializing components

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/ec02faee
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/ec02faee
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/ec02faee

Branch: refs/heads/LOG4J-1181
Commit: ec02faee2c1d261050f1fdcddaa2e146d3921d51
Parents: d42e205
Author: Ralph Goers <[email protected]>
Authored: Fri Nov 27 09:20:48 2015 -0700
Committer: Ralph Goers <[email protected]>
Committed: Fri Nov 27 09:20:48 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/core/util/WatchManagerTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ec02faee/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchManagerTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchManagerTest.java
 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchManagerTest.java
index 17fdc0c..9e229fd 100644
--- 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchManagerTest.java
+++ 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchManagerTest.java
@@ -52,9 +52,9 @@ public class WatchManagerTest {
         Assume.assumeFalse(IS_WINDOWS);
         ConfigurationScheduler scheduler = new ConfigurationScheduler();
         scheduler.incrementScheduledItems();
-        scheduler.start();
         WatchManager watchManager = new WatchManager(scheduler);
         watchManager.setIntervalSeconds(1);
+        scheduler.start();
         watchManager.start();
         try {
             File sourceFile = new File(originalFile);

Reply via email to