mirror of
https://github.com/apache/lucene.git
synced 2025-03-06 16:29:30 +00:00
SOLR-6801 fixing test failure http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-MacOSX/2008/
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1647287 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ddc5c0c6b2
commit
f75adf5956
@ -96,10 +96,16 @@ public class TestDynamicLoading extends AbstractFullDistribZkTestBase {
|
||||
ByteBuffer jar = generateZip( TestDynamicLoading.class,BlobStoreTestRequestHandler.class);
|
||||
TestBlobHandler.postAndCheck(cloudClient, baseURL, jar,1);
|
||||
|
||||
// Thread.sleep(100);
|
||||
map = TestSolrConfigHandler.getRespMap("/test1?wt=json", client);
|
||||
assertEquals(new String( ZkStateReader.toJSON(map) , StandardCharsets.UTF_8), BlobStoreTestRequestHandler.class.getName(), map.get("class"));
|
||||
|
||||
boolean success= false;
|
||||
for(int i=0;i<50;i++) {
|
||||
map = TestSolrConfigHandler.getRespMap("/test1?wt=json", client);
|
||||
if(BlobStoreTestRequestHandler.class.getName().equals(map.get("class"))){
|
||||
success = true;
|
||||
break;
|
||||
}
|
||||
Thread.sleep(100);
|
||||
}
|
||||
assertTrue(new String( ZkStateReader.toJSON(map) , StandardCharsets.UTF_8), success );
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user