Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Fix pull replication performance test
Browse files Browse the repository at this point in the history
- original codes never download the document from sync gateway because mobile side database has same documents already. So it needs to clear local documents before start the pull replication
  • Loading branch information
Hideki Itakura committed Jan 28, 2015
1 parent 72763ec commit d83f203
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/Test24_PullReplication.m
Expand Up @@ -86,6 +86,10 @@ - (double) runOne:(int)kNumberOfDocuments sizeOfDocuments:(int)kSizeofDocument {
[self logFormat: @"Push Replication Done"];
}

@autoreleasepool {
[self deleteDatabase];
}

@autoreleasepool {
self.pull = [self.database createPullReplication: syncGateway];
[self logFormat: @"Starting Pull Replication"];
Expand Down

0 comments on commit d83f203

Please sign in to comment.