[ 
https://issues.apache.org/jira/browse/SLING-3061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bertrand Delacretaz resolved SLING-3061.
----------------------------------------

    Resolution: Invalid

PEBKAC - I forgot to execute the code which disables the 
org.apache.sling.servlets.resolver.SlingServletResolver cache before testing, 
after doing that these tests work fine.
                
> 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

Reply via email to