With my solution, I run the test 10,000 times with the following command, and the test has never failed.
mvn test -Dtest=org.java_websocket.issues.Issue580Test#runNoCloseBlockingTestScenario[7]
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
The flaky test failure is resolved with my fixes. I run the test 10,000 times, and every time the test passes.
Description
try { Thread.sleep(100); } catch (InterruptedException e) { System.out.println("Exception"); }
Related Issue
https://github.com/TooTallNate/Java-WebSocket/issues/1296
Motivation and Context
This removes the test failures.
How Has This Been Tested?
With my solution, I run the test 10,000 times with the following command, and the test has never failed. mvn test -Dtest=org.java_websocket.issues.Issue580Test#runNoCloseBlockingTestScenario[7]
Types of changes
Checklist: