You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2019/12/10 21:30:04 UTC

[lucene-solr] branch branch_8x updated: SOLR-13966: forgot to test empty list

This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new f4b208b  SOLR-13966: forgot to test empty list
f4b208b is described below

commit f4b208bc4e8ec04e6718718c64639804f9a7c41e
Author: Thomas Wöckinger <th...@users.noreply.github.com>
AuthorDate: Tue Dec 10 16:28:51 2019 -0500

    SOLR-13966: forgot to test empty list
    
    (cherry picked from commit 9e84da95a288c8aa07dec6d4159c51f13ef54860)
---
 .../test/org/apache/solr/update/processor/NestedAtomicUpdateTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/core/src/test/org/apache/solr/update/processor/NestedAtomicUpdateTest.java b/solr/core/src/test/org/apache/solr/update/processor/NestedAtomicUpdateTest.java
index e016d2c..155f0c7 100644
--- a/solr/core/src/test/org/apache/solr/update/processor/NestedAtomicUpdateTest.java
+++ b/solr/core/src/test/org/apache/solr/update/processor/NestedAtomicUpdateTest.java
@@ -691,7 +691,7 @@ public class NestedAtomicUpdateTest extends SolrTestCaseJ4 {
         "=={\"doc\":{'id':\"1\", \"latlon\":\"0,0\"" +
             ", cat_ss:[\"aaa\",\"ccc\"], child1:[{\"id\":\"2\",\"cat_ss\":[\"child\"]}, {\"id\":\"3\",\"cat_ss\":[\"child\"]}]}}");
 
-    doc = sdoc("id", "1", "child1", Collections.singletonMap("set", null));
+    doc = sdoc("id", "1", "child1", Collections.singletonMap("set", empty ? new ArrayList<>() : null));
     addAndGetVersion(doc, params("wt", "json"));
 
     assertJQ(req("qt", "/get", "id", "1", "fl", "id, latlon, cat_ss, child1, [child]"),