Skip to content

Commit

Permalink
Fix test breakage caused by field ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
AshtonKem committed May 16, 2015
1 parent 93854dd commit 679fd52
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -23,8 +23,6 @@
import java.util.ArrayList;
import java.util.HashMap;

import org.apache.lucene.document.FieldType;
import org.apache.lucene.document.StoredField;
import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.common.SolrDocument;
import org.apache.solr.common.SolrDocumentList;
Expand Down Expand Up @@ -151,8 +149,9 @@ public void testResponseDocuments() throws IOException {
document.put("score", "0.7");
docs.add(document);
response.put("start", 0);
response.put("documents", docs);
response.put("numFound", 1);
response.put("documents", docs);

response.put("maxScore", 0.7);
data.put("response", response);
assertEquals( writeTransit(data), result);
Expand Down Expand Up @@ -195,8 +194,8 @@ public void testMultiValuedField() throws IOException {
document.put("tags", tags);
docs.add(document);
response.put("start", 0);
response.put("documents", docs);
response.put("numFound", 1);
response.put("documents", docs);
data.put("response", response);
String expected = writeTransit(data);
assertEquals( expected, result);
Expand Down

0 comments on commit 679fd52

Please sign in to comment.