Fix race condition in the SftpSessionFactoryTests

Related to: https://github.com/apache/mina-sshd/issues/700
This commit is contained in:
Artem Bilan
2025-03-17 10:46:30 -04:00
parent cc0602a775
commit 180c50ec9f

View File

@@ -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();
}