You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2014/10/27 23:06:16 UTC
svn commit: r1634700 -
/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java
Author: pmouawad
Date: Mon Oct 27 22:06:16 2014
New Revision: 1634700
URL: http://svn.apache.org/r1634700
Log:
Oups wrong conversion
Modified:
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java
Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java?rev=1634700&r1=1634699&r2=1634700&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java Mon Oct 27 22:06:16 2014
@@ -403,7 +403,7 @@ public class TestHTTPMirrorThread extend
final InputStream inputStream = conn.getInputStream();
while(inputStream.read() != -1) {}
inputStream.close();
- final long elapsed = (System.nanoTime() - now)/1000;
+ final long elapsed = Math.round((System.nanoTime() - now)/1000000.0);
assertTrue("Expected > 1000 " + elapsed, elapsed >= 1000);
}