lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1688884 - /lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestRateLimiter.java
Date Thu, 02 Jul 2015 19:00:15 GMT
Author: mikemccand
Date: Thu Jul  2 19:00:14 2015
New Revision: 1688884

URL: http://svn.apache.org/r1688884
Log:
remove flaky test

Modified:
    lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestRateLimiter.java

Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestRateLimiter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestRateLimiter.java?rev=1688884&r1=1688883&r2=1688884&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestRateLimiter.java (original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/store/TestRateLimiter.java Thu
Jul  2 19:00:14 2015
@@ -31,17 +31,6 @@ import org.apache.lucene.util.ThreadInte
  */
 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() {



Mime
View raw message