This is an automated email from the ASF dual-hosted git repository.

tomaswolf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git

commit 86da7dfe8a27ca4c65382a1751059960577a96fd
Author: Thomas Wolf <[email protected]>
AuthorDate: Sun Jul 5 16:12:36 2026 +0200

    Fix ClientTest.closeCleanBeforeChannelOpened
    
    This test is questionable anyway; it opens a channel and then closes
    the session without waiting for the channel to be open. The OpenFuture
    of the channel might be in opened or canceled. So don't check the
    future; just check that the channel is not open after the session was
    closed.
---
 sshd-core/src/test/java/org/apache/sshd/client/ClientTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sshd-core/src/test/java/org/apache/sshd/client/ClientTest.java 
b/sshd-core/src/test/java/org/apache/sshd/client/ClientTest.java
index 496fe03a4..bea9abc5f 100644
--- a/sshd-core/src/test/java/org/apache/sshd/client/ClientTest.java
+++ b/sshd-core/src/test/java/org/apache/sshd/client/ClientTest.java
@@ -1027,7 +1027,7 @@ public class ClientTest extends BaseTestSupport {
             CloseFuture closeFuture = session.close(false);
             assertTrue(openFuture.await(DEFAULT_TIMEOUT), "Channel not open in 
time");
             assertTrue(closeFuture.await(DEFAULT_TIMEOUT), "Session closing 
not complete in time");
-            assertTrue(openFuture.isOpened(), "Not open");
+            assertFalse(channel.isOpen(), "Channel still open");
             assertTrue(closeFuture.isClosed(), "Not closed");
         } finally {
             client.stop();

Reply via email to