Skip to content

Commit 180c50e

Browse files
committed
Fix race condition in the SftpSessionFactoryTests
Related to: apache/mina-sshd#700
1 parent cc0602a commit 180c50e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpSessionFactoryTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2024 the original author or authors.
2+
* Copyright 2014-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -262,7 +262,8 @@ void clientSessionIsClosedOnSessionClose() throws Exception {
262262
session.close();
263263

264264
assertThat(session.isOpen()).isFalse();
265-
assertThat(clientSession.isClosed()).isTrue();
265+
// TODO until https://github.com/apache/mina-sshd/issues/700
266+
await().untilAsserted(() -> assertThat(clientSession.isClosed()).isTrue());
266267

267268
sftpSessionFactory.destroy();
268269
}

0 commit comments

Comments
 (0)