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 d84c9e2 Add the debug info in the right assert method d84c9e2 is described below commit d84c9e2258caacb46f7c3796ae4377ccde1be36f Author: Felix Schumacher <felix.schumac...@internetallee.de> AuthorDate: Tue Sep 1 20:54:30 2020 +0200 Add the debug info in the right assert method --- .../apache/jmeter/protocol/http/control/TestCacheManagerBase.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 51f1182..d35456c 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 @@ -335,8 +335,9 @@ public abstract class TestCacheManagerBase extends JMeterTestCase { } private void assertInvalidEntry() throws Exception { + CacheEntry cachedEntry = getThreadCacheEntry(LOCAL_HOST); assertNotNull(getThreadCacheEntry(LOCAL_HOST), "Should find entry"); - assertFalse(this.cacheManager.inCache(url), "Should not find valid entry"); + assertFalse(this.cacheManager.inCache(url), "Should not find valid entry. Found: " + cachedEntry + " at " + System.currentTimeMillis()); } private void assertValidEntry() throws Exception { @@ -345,9 +346,8 @@ public abstract class TestCacheManagerBase extends JMeterTestCase { } private void assertNoSuchEntry() throws Exception { - CacheEntry cachedEntry = getThreadCacheEntry(LOCAL_HOST); - assertNull(cachedEntry, "Should not find entry"); - assertFalse(this.cacheManager.inCache(url), "Should not find valid entry. Found: " + cachedEntry + " at " + System.currentTimeMillis()); + assertNull(getThreadCacheEntry(LOCAL_HOST), "Should not find entry"); + assertFalse(this.cacheManager.inCache(url), "Should not find valid entry"); } @Test