You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2014/01/31 17:00:28 UTC

svn commit: r1563156 - in /lucene/dev/branches/branch_4x: ./ solr/ solr/core/ solr/core/src/test/org/apache/solr/schema/DocValuesMultiTest.java solr/core/src/test/org/apache/solr/schema/DocValuesTest.java

Author: yonik
Date: Fri Jan 31 16:00:27 2014
New Revision: 1563156

URL: http://svn.apache.org/r1563156
Log:
SOLR-5685: tests: add assertU to commit calls

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/solr/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/schema/DocValuesMultiTest.java
    lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java

Modified: lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/schema/DocValuesMultiTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/schema/DocValuesMultiTest.java?rev=1563156&r1=1563155&r2=1563156&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/schema/DocValuesMultiTest.java (original)
+++ lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/schema/DocValuesMultiTest.java Fri Jan 31 16:00:27 2014
@@ -45,7 +45,7 @@ public class DocValuesMultiTest extends 
 
   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 
     }
     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));
     }

Modified: lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java?rev=1563156&r1=1563155&r2=1563156&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java (original)
+++ lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java Fri Jan 31 16:00:27 2014
@@ -45,7 +45,7 @@ public class DocValuesTest extends SolrT
 
   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);
@@ -149,7 +149,7 @@ public class DocValuesTest extends SolrT
     }
     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));
     }
@@ -194,7 +194,7 @@ public class DocValuesTest extends SolrT
     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());