You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2021/02/21 10:32:23 UTC

[jmeter] branch master updated: Sleep a bit longer to make sure cache is invalidated

This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 25ab888  Sleep a bit longer to make sure cache is invalidated
25ab888 is described below

commit 25ab888edc20857fcd3830aab775475b59edfc4a
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Sun Feb 21 11:31:21 2021 +0100

    Sleep a bit longer to make sure cache is invalidated
    
    Hopefully this fixes the flaky test results when checking
    invalidated cache entries.
---
 .../apache/jmeter/protocol/http/control/TestCacheManagerBase.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/control/TestCacheManagerBase.java b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/control/TestCacheManagerBase.java
index 85beca3..b2e0def 100644
--- a/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/control/TestCacheManagerBase.java
+++ b/src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/control/TestCacheManagerBase.java
@@ -146,7 +146,7 @@ public abstract class TestCacheManagerBase extends JMeterTestCase {
         setCacheControl("public, max-age=1");
         cacheResult(sampleResultOK);
         assertValidEntry();
-        sleepTill(start + 1010);
+        sleepTill(start + 2010);
         assertInvalidEntry();
     }
 
@@ -248,7 +248,7 @@ public abstract class TestCacheManagerBase extends JMeterTestCase {
         setCacheControl("private, max-age=1");
         cacheResult(sampleResultOK);
         assertValidEntry();
-        sleepTill(start + 1050);
+        sleepTill(start + 2020);
         assertInvalidEntry();
     }
 
@@ -344,7 +344,7 @@ public abstract class TestCacheManagerBase extends JMeterTestCase {
         setCacheControl("public, max-age=1, no-transform");
         cacheResult(sampleResultOK);
         assertValidEntry();
-        sleepTill(start + 1010);
+        sleepTill(start + 2010);
         assertInvalidEntry();
     }