8170338: com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java failed with "Port already in use"
authormli
Wed, 30 Nov 2016 17:11:25 -0800
changeset 42334 6593d3fec506
parent 42333 83f37c05391b
child 42335 60a4da1ba918
8170338: com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java failed with "Port already in use" Reviewed-by: chegar
jdk/test/com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java
--- a/jdk/test/com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java	Tue Nov 29 01:06:10 2016 -0800
+++ b/jdk/test/com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java	Wed Nov 30 17:11:25 2016 -0800
@@ -43,7 +43,7 @@
 public class UnbindIdempotent {
 
     public static void main(String[] args) throws Exception {
-        Registry registry = TestLibrary.createRegistryOnUnusedPort();
+        Registry registry = TestLibrary.createRegistryOnEphemeralPort();
         int registryPort = TestLibrary.getRegistryPort(registry);
         InitialContext ictx = new InitialContext();
         Context rctx;