diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-26 09:33:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-26 09:33:55 +0100 |
commit | f579490449c36dcf2c22c201aa3a980860ab0b8c (patch) | |
tree | 430d2665530e5d6f9336064bc28d8d13f3a52984 | |
parent | b6e0d375b0f4c3096cd9299e81154451e8387006 (diff) | |
parent | 8a183050a859d1e2d1b32b9ba6b9d5046bd7fe38 (diff) |
Merge pull request #25744 from vespa-engine/hmusum/fix-test
Fix unstable test
-rw-r--r-- | jrt/tests/com/yahoo/jrt/ConnectTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jrt/tests/com/yahoo/jrt/ConnectTest.java b/jrt/tests/com/yahoo/jrt/ConnectTest.java index 6ad7198f310..034cab29956 100644 --- a/jrt/tests/com/yahoo/jrt/ConnectTest.java +++ b/jrt/tests/com/yahoo/jrt/ConnectTest.java @@ -1,7 +1,6 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.jrt; -import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public class ConnectTest { @@ -25,12 +24,12 @@ public class ConnectTest { target.close(); for (int i = 0; i < 100; i++) { - if (!target.isClosed()) { + if (target.isClosed()) { break; } try { Thread.sleep(100); } catch (InterruptedException e) {} } - assertFalse(target.isClosed()); + assertTrue(target.isClosed()); acceptor.shutdown().join(); client.transport().shutdown().join(); |