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

Integration tests fail on Oak due to reaction time after uploading new scripts

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

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • None
    • None
    • Testing
    • None

    Description

      A typical example isSlingResourceTypeRenderingTest.testEspHtmlInAppsFolder:

      uploadTestScript(path,"rendering-test.esp","html.esp");
      ..
      String content = getContent(displayUrl + ".html", CONTENT_TYPE_HTML);
      assertContains(content, "ESP template");

      Where the assert fails semi-randomly as the uploaded script isn't immediately used.

      Adding a 2 seconds sleep before getContent works around the problem, but of course we need something better than that.

      Attachments

        Issue Links

        Activity

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

          People

            bdelacretaz Bertrand Delacretaz
            bdelacretaz Bertrand Delacretaz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment