Skip to content

Commit 5209f52

Browse files
committed
Fix unstable async disconnect test
1 parent 4b9b444 commit 5209f52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opendj-grizzly/src/test/java/org/forgerock/opendj/grizzly/ConnectionFactoryTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ public Void answer(InvocationOnMock invocation) throws Throwable {
583583
} else {
584584
context.disconnect();
585585
}
586+
waitForCondition(context::isClosed);
586587
assertThat(context.isClosed()).isTrue();
587588
}
588589
// Block until remote close is signalled.

0 commit comments

Comments
 (0)