couchbase/couchbase-lite-android — pull request #383 by ejms (2014-07-09 13:20:36+00:00)
Title: Tests for issue couchbase-lite-java-core #224 with MockServer

The testConcurrentChangeTrackers() reproduces the issue of concurrent change trackers when calling multiple times without any time interval the goOnline() method.
The testConcurrentChangeTrackersWithStateControl() demonstrates that if we wait for the replicator status to change to IDLE after calling goOnline() we can call goOnline() as many times as we want without creating new concurrent change trackers threads.