epugh commented on code in PR #1158:
URL: https://github.com/apache/solr/pull/1158#discussion_r1011906493


##########
solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.java:
##########
@@ -602,58 +602,60 @@ public void testUnicode() throws Exception {
     SolrClient client = getSolrClient();
 
     // save the old parser, so we can set it back.
-    ResponseParser oldParser = null;
-    if (client instanceof HttpSolrClient) {
-      HttpSolrClient httpSolrClient = (HttpSolrClient) client;
-      oldParser = httpSolrClient.getParser();
-    }
-
-    try {
-      for (int iteration = 0; iteration < numIterations; iteration++) {
-        // choose format
-        if (client instanceof HttpSolrClient) {
-          if (random.nextBoolean()) {
-            ((HttpSolrClient) client).setParser(new BinaryResponseParser());
-          } else {
-            ((HttpSolrClient) client).setParser(new XMLResponseParser());
-          }
-        }
-
-        int numDocs = TestUtil.nextInt(random(), 1, 10 * RANDOM_MULTIPLIER);
-
-        // Empty the database...
-        client.deleteByQuery("*:*"); // delete everything!
-
-        List<SolrInputDocument> docs = new ArrayList<>();
-        for (int i = 0; i < numDocs; i++) {
-          // Now add something...
-          SolrInputDocument doc = new SolrInputDocument();
-          doc.addField("id", "" + i);
-          doc.addField("unicode_s", randomTestString(30));
-          docs.add(doc);
-        }
+    // ResponseParser oldParser = null;
+    // if (client instanceof HttpSolrClient) {
+    //  HttpSolrClient httpSolrClient = (HttpSolrClient) client;
+    //  oldParser = httpSolrClient.getParser();
+    // }

Review Comment:
   Actually hoping someone else can confirm that the changes I made still keep 
the test working "as designed", and that this commented out code can just be 
deleted....



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to