DATAGEODE-210 - Polish.

This commit is contained in:
John Blum
2019-07-17 19:40:14 -07:00
parent c3b71d6a74
commit c917b5ea34
2 changed files with 11 additions and 3 deletions

View File

@@ -182,8 +182,16 @@ public class LuceneOperationsIntegrationTests {
LuceneService luceneService =
event.getApplicationContext().getBean("luceneService", LuceneService.class);
SpringUtils.safeRunOperation(() ->
luceneService.waitUntilFlushed("PersonTitleIndex", "/People", 15L, TimeUnit.SECONDS));
boolean flushed = SpringUtils.safeGetValue(() -> {
try {
return luceneService.waitUntilFlushed("PersonTitleIndex", "/People", 15L, TimeUnit.SECONDS);
}
catch (Throwable ignore) {
return false;
}
});
assertThat(flushed).describedAs("LuceneIndex not flushed!").isTrue();
}
}

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<cache xmlns="http://geode.apache.org/schema/cache"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://geode.apache.org/schema/cache https://geode.apache.org/schema/cache/cache-1.0.xsd"
xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd"
version="1.0">
<region name="Example" refid="REPLICATE">