Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1525

JcrResourceListenerTest#testInWs2 fails with the actual trunk on "fast"machines from time to time.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • JCR Resource 2.0.6
    • JCR Resource 2.0.8
    • Testing
    • None
    • Win XP SP3, Maven 2.2.1

    Description

      Failure:
      testInWs2(org.apache.sling.jcr.resource.internal.JcrResourceListenerTest)
      AssertionFailedError: expected:<ws2:/test1274309020796> but was:<ws2:/test1274309020796[2]>

      It seems, that createTestPath produces more than one time the same path (because called in the same millisecond). If we extend the path with a random number everything seems to be okay.

      Attachments

        1. SLING-1525.patch
          0.9 kB
          Mike Müller

        Activity

          People

            cziegeler Carsten Ziegeler
            mykee Mike Müller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: