Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-2598

Fabric8 FileWatcherTest fails on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • jboss-fuse-6.2
    • jboss-fuse-6.2
    • Fabric8 v1
    • 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)

      Attachments

        Activity

          People

            kearls@redhat.com Kevin Earls (Inactive)
            kearls@redhat.com Kevin Earls (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: