Skip to content

Commit 9def203

Browse files
committed
Fix annotation to ignore an unstable test
Use JUnit 5 @disabled, not JUnit 4 @ignore.
1 parent a0ef7a5 commit 9def203

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sshd-core/src/test/java/org/apache/sshd/server/ServerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@
8484
import org.apache.sshd.util.test.EchoShell;
8585
import org.apache.sshd.util.test.EchoShellFactory;
8686
import org.apache.sshd.util.test.TestChannelListener;
87-
import org.junit.Ignore;
8887
import org.junit.jupiter.api.AfterEach;
8988
import org.junit.jupiter.api.BeforeEach;
89+
import org.junit.jupiter.api.Disabled;
9090
import org.junit.jupiter.api.MethodOrderer.MethodName;
9191
import org.junit.jupiter.api.Test;
9292
import org.junit.jupiter.api.TestMethodOrder;
@@ -347,7 +347,7 @@ public String toString() {
347347
* read the data, filling the ssh window and the tcp socket - the server session becomes idle, but the ssh
348348
* disconnect message can't be written - the server session is forcibly closed
349349
*/
350-
@Ignore("Unstable test")
350+
@Disabled("Unstable test")
351351
@Test
352352
void serverIdleTimeoutWithForce() throws Exception {
353353
final long idleTimeoutValue = TimeUnit.SECONDS.toMillis(5L);

0 commit comments

Comments
 (0)