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

JcrResourceListenerTest.testMultiplePaths fails after updating to Oak 1.10.0

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • JCR Resource 3.1.0
    • JCR Resource 3.2.0
    • JCR
    • None

    Description

      For me the test at JcrResourceListenerTest.testMultiplePaths() fails reproducibly with after updating the Oak dependency to 1.10.0 (in the context of SLING-11061)

      [ERROR]   JcrResourceListenerTest.testMultiplePaths:272 Received: [ResourceChange[type=ADDED, path=/libs/test_1642161154172, external=false], ResourceChange[type=CHANGED, path=/libs/test_1642161154172, external=false], ResourceChange[type=REMOVED, path=/libs/test_1642161154172, external=false], ResourceChange[type=ADDED, path=/apps/test_1642161154172, external=false], ResourceChange[type=CHANGED, path=/apps/test_1642161154172, external=false], ResourceChange[type=REMOVED, path=/apps/test_1642161154172, external=false]] expected:<7> but was:<6>
      

      Seems that this test really checks for an edge case (root remove) which is no longer happening in newer Oak versions.

      This was a deliberate change introduced with https://issues.apache.org/jira/browse/OAK-5619 so the test case needs to be adjusted after updating to a newer Oak version.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kwin Konrad Windszus
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment