More test fighting...
This commit is contained in:
parent
44ec091b35
commit
cba3b5b6d8
|
@ -44,6 +44,10 @@ public class FhirResourceDaoDstu3SearchPageExpiryTest extends BaseJpaDstu3Test {
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void before() {
|
public void before() {
|
||||||
|
myDaoConfig.setReuseCachedSearchResultsForMillis(new DaoConfig().getReuseCachedSearchResultsForMillis());
|
||||||
|
myDaoConfig.setExpireSearchResults(new DaoConfig().isExpireSearchResults());
|
||||||
|
myDaoConfig.setCountSearchResultsUpTo(null);
|
||||||
|
|
||||||
StaleSearchDeletingSvcImpl staleSearchDeletingSvc = AopTestUtils.getTargetObject(myStaleSearchDeletingSvc);
|
StaleSearchDeletingSvcImpl staleSearchDeletingSvc = AopTestUtils.getTargetObject(myStaleSearchDeletingSvc);
|
||||||
staleSearchDeletingSvc.setCutoffSlackForUnitTest(0);
|
staleSearchDeletingSvc.setCutoffSlackForUnitTest(0);
|
||||||
}
|
}
|
||||||
|
@ -347,13 +351,13 @@ public class FhirResourceDaoDstu3SearchPageExpiryTest extends BaseJpaDstu3Test {
|
||||||
@Override
|
@Override
|
||||||
protected void doInTransactionWithoutResult(TransactionStatus theArg0) {
|
protected void doInTransactionWithoutResult(TransactionStatus theArg0) {
|
||||||
Search search = null;
|
Search search = null;
|
||||||
for (int i = 0; i < 20 && search == null; i++) {
|
for (int i = 0; i < 100 && search == null; i++) {
|
||||||
search = mySearchEntityDao.findByUuid(bundleProvider.getUuid());
|
search = mySearchEntityDao.findByUuid(bundleProvider.getUuid());
|
||||||
if (search == null) {
|
if (search == null) {
|
||||||
sleepAtLeast(100);
|
sleepAtLeast(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assertNotNull(search);
|
assertNotNull("Search " + bundleProvider.getUuid() + " not found on disk after 10 seconds", search);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue