You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2013/09/13 14:22:51 UTC

[jira] [Created] (SLING-3061) Integration tests fail on Oak due to reaction time after uploading new scripts

Bertrand Delacretaz created SLING-3061:
------------------------------------------

             Summary: Integration tests fail on Oak due to reaction time after uploading new scripts
                 Key: SLING-3061
                 URL: https://issues.apache.org/jira/browse/SLING-3061
             Project: Sling
          Issue Type: Bug
          Components: Testing
            Reporter: Bertrand Delacretaz
            Assignee: Bertrand Delacretaz
            Priority: Minor


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.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira