Linked Questions

Popular Questions

java testing: accelerate time to test timeouts?

Asked by At

I have an app that manages turns in a game, it's fairly complex and it has a lot of timers that generate timeouts.. since they interoperate a lot it's difficult to be sure everything's working right (and keeps working right).

I'd like to test it, but certain timeouts are of a few minutes, to test it completely it'd take at least one hour!!

Is there any way to fake an accelerated time for the timers? Or should I just scale all the timeouts proportionally down, test them, and scale them up again each time?

thanks!

Related Questions