From 2cbc4badb7fed2cc94128fda0fc381964b1b1f8d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 4 Oct 2012 04:41:37 +0200 Subject: TestSingletonServerSocket01: unlock singleton lock --- src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket01.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket01.java b/src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket01.java index 659e69e..9acd7d6 100644 --- a/src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket01.java +++ b/src/junit/com/jogamp/common/util/locks/TestSingletonServerSocket01.java @@ -31,6 +31,7 @@ import java.io.IOException; import junit.framework.Assert; +import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; @@ -50,6 +51,7 @@ public class TestSingletonServerSocket01 { @Test public void testJVMShutdown() { Assert.assertTrue("Could not lock single instance: "+singletonInstance.getName(), singletonInstance.tryLock(SINGLE_INSTANCE_LOCK_TO)); + singletonInstance.unlock(); } public static void main(String args[]) throws IOException, InterruptedException { -- cgit v1.2.3