GitHub user anmolnar opened a pull request:
https://github.com/apache/zookeeper/pull/497
ZOOKEEPER-2415. SessionTest is using Thread deprecated API
Refactored `SessionTest` class.
`testSessionTimeout()` has been extracted to a separate class and split
into multiple tests to validate the different scenarios in a more readable way.
Removed deprecated Thread API `suspend()` and reduced the server ticktime
and session timeout for better performance.
Hopefully this will help on test's flakyness too.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/anmolnar/zookeeper ZOOKEEPER-2415
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zookeeper/pull/497.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #497
----
commit 64d5af67c4eeb34b6a06c057b5ecf0cdeb4b11df
Author: Andor Molnar <andor@...>
Date: 2018-03-28T15:50:15Z
ZOOKEEPER-2415. Refactor testSessionTimeout() to live in separate class and
not to use deprecated API. Also improved performance.
----
---