Details
-
Bug
-
Resolution: Done
-
Minor
-
jboss-fuse-6.2
-
None
-
%
Description
The fabric8 FileWatcherTest fails on windows with the message below. This is because the test uses File.renameTo, which is known to have issues on Windows. I tried replacing that with Files.move() but couldn't get that to work either.
I will add an exclude to the pom.
io.fabric8.watcher.FileWatcherTest.testFileWatcher
Failing for the past 11 builds (Since #2 )
Took 11 sec.
add description
Error Message
[Should have removed the path E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\c1\c2\thing3.txt but was [E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\b1\b2\thing3.txt, E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\something.txt, E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\a1\thing2.txt, E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\something.txt], No change event on path E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\c1\c2\thing3.txt]. Failed after 10000 millis
Stacktrace
java.lang.AssertionError: [Should have removed the path E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\c1\c2\thing3.txt but was [E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\b1\b2\thing3.txt, E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\something.txt, E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\a1\thing2.txt, E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\something.txt], No change event on path E:\jenkins\workspace\jboss-fuse-fabric8-6.2.x.redhat-patch-platform\jdk\jdk7\label\windows\fabric\watcher-core\target\test-fileWatcherDir\c1\c2\thing3.txt]. Failed after 10000 millis
at org.junit.Assert.fail(Assert.java:88)
at io.fabric8.watcher.AsyncTests.assertTrue(AsyncTests.java:52)
at io.fabric8.watcher.FileWatcherTest.assertExpectations(FileWatcherTest.java:117)
at io.fabric8.watcher.FileWatcherTest.testFileWatcher(FileWatcherTest.java:104)