diff --git a/test/jdk/java/net/Socks/SocksIPv6Test.java b/test/jdk/java/net/Socks/SocksIPv6Test.java
--- a/test/jdk/java/net/Socks/SocksIPv6Test.java
+++ b/test/jdk/java/net/Socks/SocksIPv6Test.java
@@ -173,7 +173,7 @@ public class SocksIPv6Test {
server.stop(1);
}
if (socks != null) {
- socks.terminate();
+ socks.close();
}
}
}Thanks, Roger
