jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1859458 - /jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java
Date Sat, 18 May 2019 10:19:47 GMT
Author: fschumacher
Date: Sat May 18 10:19:47 2019
New Revision: 1859458

URL: http://svn.apache.org/viewvc?rev=1859458&view=rev
Log:
Seems like the CI server is too slow to cope with three nanoseconds only

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java?rev=1859458&r1=1859457&r2=1859458&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java Sat May 18 10:19:47
2019
@@ -278,10 +278,10 @@ public class TestSampleResult implements
              */
 
             long diff = parentElapsedTotal - sumSamplesTimes;
-            long maxDiff = nanoTime ? 3 : 16; // TimeMillis has granularity of 10-20
+            long maxDiff = nanoTime ? 10 : 16; // TimeMillis has granularity of 10-20
             if (diff < 0 || diff > maxDiff) {
                 fail("ParentElapsed: " + parentElapsedTotal + " - " + " sum(samples): " +
sumSamplesTimes
-                        + " = " + diff + " not in [0," + maxDiff + "]; nanotime=" + nanoTime);
+                        + " => " + diff + " not in [0," + maxDiff + "]; nanotime=" + nanoTime);
             }
 
              // The overall time to run the test must be no less than,
@@ -290,7 +290,7 @@ public class TestSampleResult implements
             diff = overallTime - parentElapsedTotal;
             if (diff < 0 || diff > maxDiff) {
                 fail("TestElapsed: " + overallTime + " - " + " ParentElapsed: " + parentElapsedTotal
-                        + " = " + diff + " not in [0," + maxDiff + "]; nanotime="+nanoTime);
+                        + " => " + diff + " not in [0," + maxDiff + "]; nanotime="+nanoTime);
             }
 
             // Check that calculator gets the correct statistics from the sample



Mime
View raw message