Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/SSLEngineLeakTest.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/SSLEngineLeakTest.java b/jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/SSLEngineLeakTest.java
index c6641fe2db..f563d482e0 100644
--- a/jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/SSLEngineLeakTest.java
+++ b/jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/SSLEngineLeakTest.java
@@ -64,10 +64,16 @@ public class SSLEngineLeakTest extends AbstractTest
Thread.sleep(1000);
// Perform GC to be sure that the WeakHashMap is cleared
- System.gc();
Thread.sleep(1000);
+ System.gc();
// Check that the WeakHashMap is empty
+ if (objects.size()!=initialSize)
+ {
+ System.err.println(objects);
+ server.dumpStdErr();
+ }
+
Assert.assertEquals(initialSize, objects.size());
}

Back to the top