harden test against slowness (again...)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035274 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2010-11-15 13:46:58 +00:00
parent e9e615fe9f
commit 467a25a8f5
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ public class CloudStateUpdateTest extends SolrTestCaseJ4 {
cloudState2 = zkController2.getCloudState();
slices = cloudState2.getSlices("testcore");
if (slices.containsKey(host + ":1661_solr_testcore")) {
if (slices != null && slices.containsKey(host + ":1661_solr_testcore")) {
break;
}
Thread.sleep(500);