remove flaky test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1688884 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2015-07-02 19:00:14 +00:00
parent 4accc25477
commit 14d1dcaf0f
1 changed files with 0 additions and 11 deletions

View File

@ -31,17 +31,6 @@ import org.apache.lucene.util.ThreadInterruptedException;
*/
public final class TestRateLimiter extends LuceneTestCase {
public void testPause() {
SimpleRateLimiter limiter = new SimpleRateLimiter(10); // 10 MB / Sec
long pause = 0;
for (int i = 0; i < 3; i++) {
pause += limiter.pause(4 * 1024 * 1024); // fire up 3 * 4 MB
}
final long convert = TimeUnit.MILLISECONDS.convert(pause, TimeUnit.NANOSECONDS);
assertTrue("we should sleep less than 2 seconds but did: " + convert + " millis", convert < 2000l);
assertTrue("we should sleep at least 1 second but did only: " + convert + " millis", convert > 1000l);
}
// LUCENE-6075
public void testOverflowInt() throws Exception {
Thread t = new Thread() {