Details
Description
Cannot delete the database even after the replicator is stopped.
Steps
1. Create a one shot replicator
2. Let it finish replicating.
3. After its finished, try deleting the target database.
Unit test
- (void)test {
|
id target = [[CBLDatabaseEndpoint alloc] initWithDatabase: otherDB];
|
id config = [self configWithTarget: target type: kCBLReplicatorTypePush continuous: NO];
|
[self run: config errorCode: 0 errorDomain: nil];
|
|
NSError* err;
|
Assert([self.db delete: &err]);
|
}
|