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 9a7f4e2  Give a bit mor time for flaky test and add debug info
9a7f4e2 is described below

commit 9a7f4e2d0394e6ecbee2bb7dac9442613c67ba00
Author: Felix Schumacher <[email protected]>
AuthorDate: Tue Sep 1 18:02:58 2020 +0200

    Give a bit mor time for flaky test and add debug info
---
 .../apache/jmeter/protocol/http/control/TestCacheManagerBase.java  | 7 ++++---
 1 file changed, 4 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 a7320ac..45b2fac 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
@@ -261,9 +261,10 @@ 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 + 1020);
-        assertNotNull(getThreadCacheEntry(LOCAL_HOST), "Should still find 
entry");
-        assertFalse(this.cacheManager.inCache(url), "Should not now find valid 
entry");
+        sleepTill(start + 1050);
+        CacheEntry cachedEntry = getThreadCacheEntry(LOCAL_HOST);
+        assertNotNull(cachedEntry, "Should still find entry");
+        assertFalse(this.cacheManager.inCache(url), "Should not now find valid 
entry. Found: " + cachedEntry + " at " + System.currentTimeMillis()));
     }
 
     @Test

Reply via email to