epugh commented on PR #3955:
URL: https://github.com/apache/solr/pull/3955#issuecomment-3694168754
I asked AI for some help and it rewrote the test, but I'm not sure that's
what we want:
```
diff --git
a/solr/core/src/test/org/apache/solr/handler/admin/AdminHandlersProxyTest.java
b/solr/core/src/test/org/apache/solr/handler/admin/AdminHandlersProxyTest.java
index 14411a38876..2731f9473b4 100644
---
a/solr/core/src/test/org/apache/solr/handler/admin/AdminHandlersProxyTest.java
+++
b/solr/core/src/test/org/apache/solr/handler/admin/AdminHandlersProxyTest.java
@@ -82,10 +82,11 @@ public class AdminHandlersProxyTest extends
SolrCloudTestCase {
SystemInfoResponse rsp = req.process(solrClient, null);
NamedList<Object> nl = rsp.getResponse();
assertEquals(2, nl.size());
- assertEquals("solrcloud", rsp.getMode());
- assertEquals(nl.getName(1), rsp.getNode());
+ assertTrue(nl.getName(1).endsWith("_solr"));
+ assertEquals("solrcloud", ((NamedList)
nl.get(nl.getName(1))).get("mode"));
+ assertEquals(nl.getName(1), ((NamedList)
nl.get(nl.getName(1))).get("node"));
} catch (Exception e) {
- fail("Exception while proxying request to node " + node);
+ fail("Exception while proxying request to node " + node + ": "
+ e.getMessage() + " - " + e.getClass().getSimpleName());
}
});
}
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]