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