[java-opensaml] branch main updated: Introduce a wait if open connections are found.
Daniel Fisher
dfisher at vt.edu
Tue Nov 15 01:42:02 UTC 2022
This is an automated email from the git hooks/post-receive script.
dfisher pushed a commit to branch main
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=4f7f1265161f217936129eec671bc12ca9529d76
The following commit(s) were added to refs/heads/main by this push:
new 4f7f12651 Introduce a wait if open connections are found.
4f7f12651 is described below
commit 4f7f1265161f217936129eec671bc12ca9529d76
Author: Daniel Fisher <dfisher at vt.edu>
AuthorDate: Mon Nov 14 20:36:56 2022 -0500
Introduce a wait if open connections are found.
Nightly test infrastructure may be taking longer for the Socket to set the isClosed flag.
---
.../security/trust/impl/TrustEngineX509TrustManagerTest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/opensaml-security-impl/src/test/java/org/opensaml/security/trust/impl/TrustEngineX509TrustManagerTest.java b/opensaml-security-impl/src/test/java/org/opensaml/security/trust/impl/TrustEngineX509TrustManagerTest.java
index fd13e5a63..02caf83d4 100644
--- a/opensaml-security-impl/src/test/java/org/opensaml/security/trust/impl/TrustEngineX509TrustManagerTest.java
+++ b/opensaml-security-impl/src/test/java/org/opensaml/security/trust/impl/TrustEngineX509TrustManagerTest.java
@@ -79,7 +79,10 @@ public class TrustEngineX509TrustManagerTest {
/**
* Shutdown the in-memory directory server.
*/
- @AfterClass public void teardownDirectoryServer() {
+ @AfterClass public void teardownDirectoryServer() throws Exception {
+ if (directoryServer.openConnectionCount() > 0) {
+ Thread.sleep(100);
+ }
assertEquals(directoryServer.openConnectionCount(), 0);
directoryServer.stop(true);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list