Fix race condition in the SftpSessionFactoryTests
Related to: https://github.com/apache/mina-sshd/issues/700
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user