You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2021/03/26 16:43:06 UTC

[lucene] 03/03: fixed the test

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

janhoy pushed a commit to tag history/branches/lucene-solr/jira/solr14275
in repository https://gitbox.apache.org/repos/asf/lucene.git

commit 243b3b88ba913682d71bc55ca06efebffdbf56db
Author: noble <no...@apache.org>
AuthorDate: Tue Mar 31 15:22:06 2020 +1100

    fixed the test
---
 .../org/apache/solr/client/solrj/cloud/autoscaling/TestPolicy2.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/cloud/autoscaling/TestPolicy2.java b/solr/solrj/src/test/org/apache/solr/client/solrj/cloud/autoscaling/TestPolicy2.java
index d4b69b1..95ab6a3 100644
--- a/solr/solrj/src/test/org/apache/solr/client/solrj/cloud/autoscaling/TestPolicy2.java
+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/cloud/autoscaling/TestPolicy2.java
@@ -561,10 +561,10 @@ public class TestPolicy2 extends SolrTestCaseJ4 {
         Suggester suggester = session.getSuggester(CollectionParams.CollectionAction.ADDREPLICA);
         suggester.hint(Suggester.Hint.COLL_SHARD, new Pair<>(collName, "shards_" + i));
         SolrRequest op = suggester.getSuggestion();
+        session = suggester.getSession();
         assertNotNull(op);
       }
     }
-
     System.out.println("Time taken : "+ (System.currentTimeMillis() -start));
   }