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

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

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: