PicoContainer
  1. PicoContainer
  2. PICO-144

[deployer] FolderContentPollerTestCase fails

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta-5
    • Fix Version/s: None
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Environment:
      Gentoo Linux, Blackdown JDK 1.4.1
    • Number of attachments :
      1

      Description

      Just a heads-up, had no time to investigate yet.

      Testsuite: org.nanocontainer.deployer.FolderContentPollerTestCase
      Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0,961 sec

      Testcase: testShouldPollForNewFoldersAtRegularIntervals took 0,917 sec
      FAILED
      rootFolder: Should have been invoked
      junit.framework.AssertionFailedError: rootFolder: Should have been invoked
      at org.jmock.dynamic.CoreMock.verify(CoreMock.java:48)
      at org.jmock.Mock.verify(Mock.java:230)
      at org.nanocontainer.deployer.FolderContentPollerTestCase.testShouldPollForNewFoldersAtRegularIntervals(FolderContentPollerTestCase.java:43)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      Testcase: testShouldPollForNewFoldersAtRegularIntervals

        Activity

        Hide
        Jacob Kjome added a comment -

        This also failed for me yesterday, but after an update today, it seems to be working. Might be able to close this one. Better verify, though.

        Jake

        Show
        Jacob Kjome added a comment - This also failed for me yesterday, but after an update today, it seems to be working. Might be able to close this one. Better verify, though. Jake
        Hide
        Jörg Schaible added a comment -

        Hi Aslak,

        I have a 50% chance for this test failing at a Maven build. While you tried to fix this by increasing the sleep from 200 to 500, it does not help, since the problem arises after the notify, when your check is faster then the awakened thread.

        Regards,
        Jörg

        Show
        Jörg Schaible added a comment - Hi Aslak, I have a 50% chance for this test failing at a Maven build. While you tried to fix this by increasing the sleep from 200 to 500, it does not help, since the problem arises after the notify, when your check is faster then the awakened thread. Regards, Jörg
        Jörg Schaible made changes -
        Field Original Value New Value
        Attachment FolderContentPollerTestCase.java.diff [ 11516 ]
        Hide
        Aslak Hellesøy added a comment -

        Thanks Jorg!

        I hate sleep in tests. If you have hints about how to avoid it here, please let me know.

        Show
        Aslak Hellesøy added a comment - Thanks Jorg! I hate sleep in tests. If you have hints about how to avoid it here, please let me know.
        Aslak Hellesøy made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Assignee Aslak Hellesoy [ rinkrank ]

          People

          • Assignee:
            Aslak Hellesøy
            Reporter:
            Jörg Schaible
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: