Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0-incubating
-
None
-
running tests with oracle-it profile
Description
ReportTestITCase.executeAndExport hangs with oracle.
A certain delay to execute operations on the repository implies to re-execute request till the end of certain operations.
The same is for the test in object.
The following code could implies more then one request sending. Unfortunately the fifth attempt hangs the process ....
i = 0;
maxit = 10;
do {
try
catch (InterruptedException e) {
}
getMethod = new HttpGet(BASE_URL + "report/execution/export/" + postExecIds.iterator().next());
response = ((PreemptiveAuthHttpRequestFactory) restTemplate.getRequestFactory()).getHttpClient().execute(
getMethod);
i++;
} while ((response == null || response.getStatusLine().getStatusCode() != 200) && i < maxit);
Extending the sleep time at 3s the execution will be completed before the fifth request so the test passes.
Attachments
Issue Links
- relates to
-
SYNCOPE-202 MySQL and Oracle integration test hangs
- Closed