Fix assertion in AbstractSimpleTransportTestCase (#32991)
This is a follow-up to #32956. That commit incorrectly used assertBusy which led to a possible race in the test. This commit fixes it.
This commit is contained in:
parent
2feda8aae0
commit
cd83ddcecc
|
@ -2650,7 +2650,7 @@ public abstract class AbstractSimpleTransportTestCase extends ESTestCase {
|
|||
public void onConnectionOpened(final Transport.Connection connection) {
|
||||
closeConnectionChannel(connection);
|
||||
try {
|
||||
assertBusy(connection::isClosed);
|
||||
assertBusy(() -> assertTrue(connection.isClosed()));
|
||||
} catch (Exception e) {
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue