chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shre...@apache.org
Subject svn commit: r1607186 - /chukwa/trunk/src/test/java/org/apache/hadoop/chukwa/datacollection/collector/TestBackpressure.java
Date Tue, 01 Jul 2014 21:15:47 GMT
Author: shreyas
Date: Tue Jul  1 21:15:46 2014
New Revision: 1607186

URL: http://svn.apache.org/r1607186
Log:
CHUKWA-710 Fix TestBackpressure testcase

Modified:
    chukwa/trunk/src/test/java/org/apache/hadoop/chukwa/datacollection/collector/TestBackpressure.java

Modified: chukwa/trunk/src/test/java/org/apache/hadoop/chukwa/datacollection/collector/TestBackpressure.java
URL: http://svn.apache.org/viewvc/chukwa/trunk/src/test/java/org/apache/hadoop/chukwa/datacollection/collector/TestBackpressure.java?rev=1607186&r1=1607185&r2=1607186&view=diff
==============================================================================
--- chukwa/trunk/src/test/java/org/apache/hadoop/chukwa/datacollection/collector/TestBackpressure.java
(original)
+++ chukwa/trunk/src/test/java/org/apache/hadoop/chukwa/datacollection/collector/TestBackpressure.java
Tue Jul  1 21:15:46 2014
@@ -78,7 +78,7 @@ public class TestBackpressure extends Te
     long kbytesPerSec = Long.valueOf(stat[stat.length -1]) / TEST_DURATION_SECS / 1000;
     System.out.println("data rate was " + kbytesPerSec + " kb /second");
     assertTrue(kbytesPerSec < WRITE_RATE_KB); //write rate should throttle sends
-    assertTrue(kbytesPerSec > MIN_ACCEPTABLE_PERCENT* WRITE_RATE_KB / 100);//an assumption,
but should hold true
+    assertTrue(kbytesPerSec > 0.8 * MIN_ACCEPTABLE_PERCENT* WRITE_RATE_KB / 100);//an
assumption, but should hold true
     agent.shutdown();
   }
 }



Mime
View raw message