Skip to content

Commit 000a1ef

Browse files
authored
Merge pull request #106 from pavelhoral/fix-tests
Fix unstable async disconnect test
2 parents 4b9b444 + 5209f52 commit 000a1ef

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)