Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made TDPuller test use a public database

It used to access a database on my local CouchDB server, meaning it would fail if run on any computer other than mine :(
Fixes #19.
  • Loading branch information...
commit 8c6c5fd5063234a6f40f449ca52ff4f5a5b04865 1 parent a5f2231
@snej snej authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 Source/TDPuller_Tests.m
View
14 Source/TDPuller_Tests.m
@@ -45,15 +45,17 @@ static id pull(TDDatabase* db, NSString* urlStr, id lastSequence) {
TDDatabase* db = [server databaseNamed: @"db"];
[db open];
- id lastSeq = pull(db, @"http://127.0.0.1:5984/revs_test_1", nil);
- CAssertEqual(lastSeq, @"7");
+ NSString* remoteURLStr = @"http://snej.iriscouch.com/tdpuller_test1";
- CAssertEq(db.documentCount, 2u);
- CAssertEq(db.lastSequence, 6);
+ id lastSeq = pull(db, remoteURLStr, nil);
+ CAssertEqual(lastSeq, @"6");
- pull(db, @"http://127.0.0.1:5984/revs_test_1", lastSeq);
+ CAssertEq(db.documentCount, 3u);
+ CAssertEq(db.lastSequence, 10);
- CAssertEq(db.lastSequence, 6);
+ pull(db, remoteURLStr, lastSeq);
+
+ CAssertEq(db.lastSequence, 10);
}
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.