SOLR-9614: fixing TestSolrCloudWithKerberosAlt

This commit is contained in:
Mikhail Khludnev 2016-10-10 12:18:54 +03:00
parent d8bb56d4ad
commit 9fea5129d3
1 changed files with 1 additions and 2 deletions

View File

@ -406,9 +406,8 @@ public class HttpClientUtil {
* in connection pools if client authentication is enabled.
*/
public static HttpClientContext createNewHttpClientRequestContext() {
HttpClientContext context = new HttpClientContext();
HttpClientContext context = httpClientRequestContextBuilder.createContext(HttpSolrClient.cacheKey);
context.setUserToken(HttpSolrClient.cacheKey);
return context;
}