Mocking the time via a utility was my thought. Mocking system itself is scary.

Sent from my iPhone

On Aug 20, 2010, at 1:18 PM, Benjamin Reed <> wrote:

i put up a patch that should address the problem. now i need to write a test case. the only way i can think of is to change the call to System.currentTimeMillis to a utility class that calls System.currentTimeMillis that i can mock for testing. any better ideas?


On 08/19/2010 03:53 PM, Ted Dunning wrote:
Put in a four letter command that will put the server to sleep for 15


On Thu, Aug 19, 2010 at 3:51 PM, Benjamin Reed<br...@yahoo-> wrote:

i'm updating ZOOKEEPER-366 with this discussion and try to get a patch out.
Qing (or anyone else, can you reproduce it pretty easily?)

Reply via email to