diff --git a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpSessionFactoryTests.java b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpSessionFactoryTests.java index 05d245df5b..807464e07e 100644 --- a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpSessionFactoryTests.java +++ b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpSessionFactoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2024 the original author or authors. + * Copyright 2014-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -262,7 +262,8 @@ public class SftpSessionFactoryTests { session.close(); assertThat(session.isOpen()).isFalse(); - assertThat(clientSession.isClosed()).isTrue(); + // TODO until https://github.com/apache/mina-sshd/issues/700 + await().untilAsserted(() -> assertThat(clientSession.isClosed()).isTrue()); sftpSessionFactory.destroy(); }