mirror of https://github.com/apache/lucene.git
Allow better debugging this test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1372125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d1447b47f3
commit
e2518705e8
|
@ -128,9 +128,10 @@ public class TestWeakIdentityMap extends LuceneTestCase {
|
||||||
assertNotNull(it.next());
|
assertNotNull(it.next());
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
assertTrue(size >= c);
|
final int newSize = map.size();
|
||||||
assertTrue(c >= map.size());
|
assertTrue("previousSize("+size+")>=iteratorSize("+c+")", size >= c);
|
||||||
size = map.size();
|
assertTrue("iteratorSize("+c+")>=newSize("+newSize+")", c >= newSize);
|
||||||
|
size = newSize;
|
||||||
} catch (InterruptedException ie) {}
|
} catch (InterruptedException ie) {}
|
||||||
|
|
||||||
map.clear();
|
map.clear();
|
||||||
|
@ -228,9 +229,10 @@ public class TestWeakIdentityMap extends LuceneTestCase {
|
||||||
assertNotNull(it.next());
|
assertNotNull(it.next());
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
assertTrue(size >= c);
|
final int newSize = map.size();
|
||||||
assertTrue(c >= map.size());
|
assertTrue("previousSize("+size+")>=iteratorSize("+c+")", size >= c);
|
||||||
size = map.size();
|
assertTrue("iteratorSize("+c+")>=newSize("+newSize+")", c >= newSize);
|
||||||
|
size = newSize;
|
||||||
} catch (InterruptedException ie) {}
|
} catch (InterruptedException ie) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue