SOLR-5685: tests: add assertU to commit calls

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1563142 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2014-01-31 14:58:21 +00:00
parent f335512f02
commit db5964de02
7 changed files with 10 additions and 10 deletions

View File

@ -64,7 +64,7 @@ public class ExpressionTest extends AbstractAnalyticsStatsTest {
"double_dd", "" + d, "date_dtd", dt, "string_sd", s));
if (usually()) {
commit(); // to have several segments
assertU(commit()); // to have several segments
}
}

View File

@ -99,7 +99,7 @@ public class FieldFacetExtrasTest extends AbstractAnalyticsFacetTest {
}
if (usually()) {
commit(); // to have several segments
assertU(commit()); // to have several segments
}
}

View File

@ -383,7 +383,7 @@ public class FieldFacetTest extends AbstractAnalyticsFacetTest{
}
if (usually()) {
commit(); // to have several segments
assertU(commit()); // to have several segments
}
}

View File

@ -95,7 +95,7 @@ public class QueryFacetTest extends AbstractAnalyticsFacetTest {
}
if (usually()) {
commit(); // to have several segments
assertU(commit()); // to have several segments
}
}

View File

@ -76,7 +76,7 @@ public class FunctionTest extends AbstractAnalyticsStatsTest {
if (usually()) {
commit(); // to have several segments
assertU(commit()); // to have several segments
}
}

View File

@ -45,7 +45,7 @@ public class DocValuesMultiTest extends SolrTestCaseJ4 {
public void testDocValues() throws IOException {
assertU(adoc("id", "1", "floatdv", "4.5", "intdv", "-1", "intdv", "3", "stringdv", "value1", "stringdv", "value2"));
commit();
assertU(commit());
SolrCore core = h.getCoreInc();
try {
final RefCounted<SolrIndexSearcher> searcherRef = core.openNewSearcher(true, true);
@ -150,7 +150,7 @@ public class DocValuesMultiTest extends SolrTestCaseJ4 {
}
for (int i = 0; i < 50; ++i) {
if (rarely()) {
commit(); // to have several segments
assertU(commit()); // to have several segments
}
assertU(adoc("id", "1000" + i, "floatdv", "" + i, "intdv", "" + i, "doubledv", "" + i, "longdv", "" + i, "datedv", (1900+i) + "-12-31T23:59:59.999Z", "stringdv", "abc" + i));
}

View File

@ -43,7 +43,7 @@ public class DocValuesTest extends SolrTestCaseJ4 {
public void testDocValues() throws IOException {
assertU(adoc("id", "1"));
commit();
assertU(commit());
SolrCore core = h.getCoreInc();
try {
final RefCounted<SolrIndexSearcher> searcherRef = core.openNewSearcher(true, true);
@ -147,7 +147,7 @@ public class DocValuesTest extends SolrTestCaseJ4 {
}
for (int i = 0; i < 50; ++i) {
if (rarely()) {
commit(); // to have several segments
assertU(commit()); // to have several segments
}
assertU(adoc("id", "1000" + i, "floatdv", "" + i, "intdv", "" + i, "doubledv", "" + i, "longdv", "" + i, "datedv", (1900+i) + "-12-31T23:59:59.999Z", "stringdv", "abc" + i));
}
@ -192,7 +192,7 @@ public class DocValuesTest extends SolrTestCaseJ4 {
for (int i = 0; i < 50; ++i) {
assertU(adoc("id", "1000" + i, "floatdv", "" + i%2, "intdv", "" + i%3, "doubledv", "" + i%4, "longdv", "" + i%5, "datedv", (1900+i%6) + "-12-31T23:59:59.999Z", "stringdv", "abc" + i%7));
if (rarely()) {
commit(); // to have several segments
assertU(commit()); // to have several segments
}
}
assertU(commit());