-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, the test may fail sporadically due to a race condition between receiving a "thread interrupted" state on a live connection and one that has been closed already (resulting in an AsynchronousCloseException instead of a ClosedByInterruptException). Make sure that the client connection is closed from the servce side only after a delay that is significantly longer than any other delay in this test class. Run that close() in a separate Thread to avoid unnecessarily long delays. Finally, set all expected exceptions back to ClosedByInterruptException, as intended by the original author (cenodis). #158
- Loading branch information
1 parent
919b063
commit 83b3e6a
Showing
1 changed file
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters