Repository: logging-log4j2
Updated Branches:
  refs/heads/master 0a60d1414 -> 77505979e


Need more sleep for this test to pass on my machine...

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

Branch: refs/heads/master
Commit: 77505979e8f5e743596fba250f7933a1dab86a84
Parents: 0a60d14
Author: Gary Gregory <[email protected]>
Authored: Fri Jan 16 15:19:31 2015 -0500
Committer: Gary Gregory <[email protected]>
Committed: Fri Jan 16 15:19:31 2015 -0500

----------------------------------------------------------------------
 .../test/java/org/apache/logging/log4j/core/FileConfigTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/77505979/log4j-core/src/test/java/org/apache/logging/log4j/core/FileConfigTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/FileConfigTest.java 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/FileConfigTest.java
index c27c214..c4bf4fe 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/FileConfigTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/FileConfigTest.java
@@ -51,11 +51,12 @@ public class FileConfigTest {
         final long orig = file.lastModified();
         final long newTime = orig + 10000;
         file.setLastModified(newTime);
-        Thread.sleep((MONITOR_INTERVAL_SECONDS + 1) * 1000);
+        int sleepMillis = (MONITOR_INTERVAL_SECONDS + 1) * 1000;
+        Thread.sleep(sleepMillis);
         for (int i = 0; i < 17; ++i) {
             logger.debug("Reconfigure");
         }
-        Thread.sleep(100);
+        Thread.sleep(sleepMillis);
         final Configuration newConfig = context.getConfiguration();
         assertNotSame("Reconfiguration failed", newConfig, oldConfig);
     }

Reply via email to