diff options
-rw-r--r-- | jetty-spdy/spdy-jetty/src/test/java/org/eclipse/jetty/spdy/SSLEngineLeakTest.java | 8 |
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()); } |