You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lp...@apache.org on 2023/02/07 23:05:08 UTC
[shiro] branch main updated: fix tests: now setting reuseaddr to true in hopes to detect port clashes better
This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/main by this push:
new 09e978c7 fix tests: now setting reuseaddr to true in hopes to detect port clashes better
09e978c7 is described below
commit 09e978c71d625bbe33121cd8ad645d4f288c18df
Author: lprimak <le...@flowlogix.com>
AuthorDate: Tue Feb 7 17:04:39 2023 -0600
fix tests: now setting reuseaddr to true in hopes to detect port clashes better
---
integration-tests/jakarta-ee/pom.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/integration-tests/jakarta-ee/pom.xml b/integration-tests/jakarta-ee/pom.xml
index 36aa9de3..1a01ddf8 100644
--- a/integration-tests/jakarta-ee/pom.xml
+++ b/integration-tests/jakarta-ee/pom.xml
@@ -322,7 +322,9 @@
def server_socket
adminPort = portbase + admin_port_increment
try {
- server_socket = new ServerSocket(adminPort)
+ server_socket = new ServerSocket()
+ server_socket.setReuseAddress true
+ server_socket.bind(new InetSocketAddress(adminPort))
break
} catch (IOException e) {
println "Admin port $adminPort is busy, trying next"