Description
Fails inconsistently on Jenkins job:
Unit test fails:
couchbase-lite-ios-ee 18:37:01 $ grep "Received C4ReplicatorStatus Changed" ~/Desktop/testDeleteWithActiveLiveQueriesAndReplicators.txt
|
2020-11-17 15:43:42.001161-0800 CBL_EE_Tests[87402:11940365] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 2 (state = 6)
|
2020-11-17 15:43:42.010022-0800 CBL_EE_Tests[87402:11938762] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 2 (state = 6)
|
2020-11-17 15:43:42.058119-0800 CBL_EE_Tests[87402:11939033] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 6)
|
2020-11-17 15:43:42.078595-0800 CBL_EE_Tests[87402:11938720] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 6)
|
2020-11-17 15:43:42.230774-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 5)
|
2020-11-17 15:43:42.250556-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 5)
|
2020-11-17 15:43:42.254012-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 5)
|
2020-11-17 15:43:42.259281-0800 CBL_EE_Tests[87402:11940365] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 1)
|
2020-11-17 15:43:42.262758-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 1)
|
2020-11-17 15:43:42.272738-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 1)
|
2020-11-17 15:43:42.281134-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 0 (state = 1)
|
2020-11-17 15:43:42.303538-0800 CBL_EE_Tests[87402:11938720] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 0 (state = 1)
|
Replicators status/states are as follows. Assuming each repeated status /state belongs to
#1 and #2 replicators.
1. connecting/starting
2. connecting/starting
3. busy/starting
4. busy/starting
5. idle/running
6. idle/running
7. busy/running
8. busy/stopping
9. idle/stopping
10. stopped/stopping
11. stopped/stopping
Looks like the step 7. `busy/running` shows the replicator is running again, which causes it to go back to `idle` state after that, which causes the expectation to hit twice.