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 da7a3e4  Wait a bit longer at least to the next second to get rid of 
this flaky test
da7a3e4 is described below

commit da7a3e4f42dd4ac4c8680fc79539aa759c4ad156
Author: Felix Schumacher <[email protected]>
AuthorDate: Tue Sep 1 17:48:59 2020 +0200

    Wait a bit longer at least to the next second to get rid of this flaky test
---
 .../org/apache/jmeter/protocol/http/control/TestCacheManagerBase.java | 4 ++--
 1 file changed, 2 insertions(+), 2 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 16077ab..a7320ac 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
@@ -283,7 +283,7 @@ public abstract class TestCacheManagerBase extends 
JMeterTestCase {
         cacheResult(sampleResultOK);
         assertNotNull(getThreadCacheEntry(LOCAL_HOST), "Should find entry");
         assertTrue(this.cacheManager.inCache(url), "Should find valid entry");
-        sleepTill(start + age / 10 + 10);
+        sleepTill(start + age / 10 + 1010);
         CacheEntry cachedEntry = getThreadCacheEntry(LOCAL_HOST);
         assertNotNull(cachedEntry, "Should find entry");
         assertFalse(this.cacheManager.inCache(url),
@@ -307,7 +307,7 @@ public abstract class TestCacheManagerBase extends 
JMeterTestCase {
         cacheResult(sampleResultOK);
         assertNotNull(getThreadCacheEntry(LOCAL_HOST), "Should find entry");
         assertTrue(this.cacheManager.inCache(url), "Should find valid entry");
-        sleepTill(start + age / 10 + 10);
+        sleepTill(start + age / 10 + 1010);
         assertNotNull(getThreadCacheEntry(LOCAL_HOST), "Should find entry");
         assertFalse(this.cacheManager.inCache(url), "Should not find valid 
entry");
     }

Reply via email to