From 2681ca2d6769f5b93b5574784765e36a7ea67dba Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Sun, 22 Aug 2010 18:27:29 +0000 Subject: [PATCH] tests: create multiple segments when testing grouping git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@987937 13f79535-47bb-0310-9956-ffa450edef68 --- solr/src/test/org/apache/solr/TestGroupingSearch.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/solr/src/test/org/apache/solr/TestGroupingSearch.java b/solr/src/test/org/apache/solr/TestGroupingSearch.java index f914c97c5a0..6b3dcf273c2 100644 --- a/solr/src/test/org/apache/solr/TestGroupingSearch.java +++ b/solr/src/test/org/apache/solr/TestGroupingSearch.java @@ -144,12 +144,15 @@ public class TestGroupingSearch extends SolrTestCaseJ4 { assertU(adoc("id","1", f,"5", f2,"4")); assertU(adoc("id","2", f,"4", f2,"2")); assertU(adoc("id","3", f,"3", f2,"7")); + assertU(commit()); assertU(adoc("id","4", f,"2", f2,"6")); assertU(adoc("id","5", f,"1", f2,"2")); assertU(adoc("id","6", f,"3", f2,"2")); assertU(adoc("id","7", f,"2", f2,"3")); + assertU(commit()); assertU(adoc("id","8", f,"1", f2,"10")); assertU(adoc("id","9", f,"2", f2,"1")); + assertU(commit()); assertU(adoc("id","10", f,"1", f2,"3")); assertU(commit()); }