This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
The following commit(s) were added to refs/heads/master by this push:
new db83498 Fails randomly on Windows, so skip it on Windows.
db83498 is described below
commit db83498053f3258c75a92e4b4211248724bcca99
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Oct 18 17:01:30 2020 -0400
Fails randomly on Windows, so skip it on Windows.
---
.../org/apache/commons/vfs2/impl/test/DefaultFileMonitorTest.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/test/DefaultFileMonitorTest.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/test/DefaultFileMonitorTest.java
index d9b8ce5..bf705ef 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/test/DefaultFileMonitorTest.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/test/DefaultFileMonitorTest.java
@@ -16,12 +16,15 @@
*/
package org.apache.commons.vfs2.impl.test;
+import static org.junit.Assume.assumeFalse;
+
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicLong;
import org.apache.commons.AbstractVfsTestCase;
+import org.apache.commons.lang3.SystemUtils;
import org.apache.commons.vfs2.FileChangeEvent;
import org.apache.commons.vfs2.FileListener;
import org.apache.commons.vfs2.FileObject;
@@ -33,7 +36,6 @@ import org.junit.Ignore;
/**
* Test to verify DefaultFileMonitor
*/
-@Ignore
public class DefaultFileMonitorTest extends AbstractVfsTestCase {
private static final int DELAY_MILLIS = 100;
@@ -44,6 +46,8 @@ public class DefaultFileMonitorTest extends
AbstractVfsTestCase {
@Override
public void setUp() throws Exception {
+ // Fails randomly on Windows.
+ assumeFalse(SystemUtils.IS_OS_WINDOWS);
super.setUp();
fsManager = VFS.getManager();
testDir = AbstractVfsTestCase.getTestDirectoryFile();