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 06949d1  Try to get more info on flaky test
06949d1 is described below

commit 06949d116cb08382cc125ca14d9ad2fac0b9a1cc
Author: Felix Schumacher <[email protected]>
AuthorDate: Sun Aug 30 12:31:24 2020 +0200

    Try to get more info on flaky test
---
 .../apache/jmeter/protocol/http/control/TestCacheManagerBase.java   | 6 ++++--
 1 file changed, 4 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 89600bd..f9d4d48 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
@@ -32,6 +32,7 @@ import java.util.Map;
 import java.util.TimeZone;
 
 import org.apache.jmeter.junit.JMeterTestCase;
+import org.apache.jmeter.protocol.http.control.CacheManager.CacheEntry;
 import org.apache.jmeter.protocol.http.sampler.HTTPSampleResult;
 import org.apache.jmeter.protocol.http.util.HTTPConstants;
 import org.junit.jupiter.api.Test;
@@ -281,8 +282,9 @@ public abstract class TestCacheManagerBase extends 
JMeterTestCase {
         assertNotNull(getThreadCacheEntry(LOCAL_HOST), "Should find entry");
         assertTrue(this.cacheManager.inCache(url), "Should find valid entry");
         sleepTill(start + age / 10 + 10);
-        assertNotNull(getThreadCacheEntry(LOCAL_HOST), "Should find entry");
-        assertFalse(this.cacheManager.inCache(url), "Should not find valid 
entry");
+        CacheEntry cachedEntry = getThreadCacheEntry(LOCAL_HOST);
+        assertNotNull(cachedEntry, "Should find entry");
+        assertFalse(this.cacheManager.inCache(url), "Should not find valid 
entry. Found " + cachedEntry);
     }
 
     @Test

Reply via email to