Fix the failure of Issue256Test. by dota17 · Pull Request #1046 · TooTallNate/Java-WebSocket · GitHub
Skip to content

Fix the failure of Issue256Test.#1046

Merged
marci4 merged 1 commit into
TooTallNate:masterfrom
dota17:FixedFailureTest
Jul 28, 2020
Merged

Fix the failure of Issue256Test.#1046
marci4 merged 1 commit into
TooTallNate:masterfrom
dota17:FixedFailureTest

Conversation

@dota17

@dota17 dota17 commented Jul 13, 2020

Copy link
Copy Markdown
Contributor

Fix the failure of issue256Test.

Why issue256Test would always fail when we run the first test?
It is because we got the incompletes current thread in the method ThreadCheck.before(), when it went too fast so that the server's workers were not all started.
After the first test, we could got the completes current thread in the next tests because at the time the server was ready and all its workers were started. Thus, the next tests would success.

Comment thread src/test/java/org/java_websocket/util/ThreadCheck.java Outdated
Comment thread src/test/java/org/java_websocket/issues/Issue256Test.java Outdated
Comment thread src/test/java/org/java_websocket/issues/Issue256Test.java Outdated
@marci4 marci4 added the Test label Jul 22, 2020
@marci4 marci4 added this to the Release 1.5.2 milestone Jul 22, 2020
@dota17 dota17 force-pushed the FixedFailureTest branch from 3a69c41 to 934bd9f Compare July 28, 2020 08:03
@dota17

dota17 commented Jul 28, 2020

Copy link
Copy Markdown
Contributor Author

@dota17 dota17 requested a review from marci4 July 28, 2020 08:33
@marci4

marci4 commented Jul 28, 2020

Copy link
Copy Markdown
Collaborator

@marci4 marci4 merged commit b7e2c94 into TooTallNate:master Jul 28, 2020
@dota17 dota17 deleted the FixedFailureTest branch July 29, 2020 00:59
@marci4 marci4 linked an issue Aug 15, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit test failing with "Found x zombie thread(s)" on macOS on master

2 participants