Added syncStarted and syncEnded events to heartbeats

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Added test to heartbeats to check if sync timeout was working properly

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
keep an array of starts and ends, and make sure NONE fail, not just one

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
add some logging for better debugging

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Don't call the functions inside the call to .then() but within the .then's callback

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
shorter log

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
try to make sure the goto actually forces a resync

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
make timing test a little more flexible

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Merge pull request #138 from inaes-tic/jmrunge/sync-timeout

Jmrunge/sync timeout