Skip to content

Commit

Permalink
disable testReplicatedDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
velicuvlad committed Oct 31, 2024
1 parent 0cac6cf commit ae037f6
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions Objective-C/Tests/ReplicatorTest+Main.m
Original file line number Diff line number Diff line change
Expand Up @@ -2009,29 +2009,29 @@ - (void) testCreateDocumentReplicator {
repl = nil;
}

- (void) testReplicatedDocument {
C4DocumentEnded end;
end.docID = c4str("docID");
end.revID = c4str("revID");
end.flags = kRevDeleted;
end.error = c4error_make(1, kC4ErrorBusy, c4str("error"));
end.errorIsTransient = true;
end.collectionSpec = kC4DefaultCollectionSpec;

CBLReplicatedDocument* replicatedDoc = [[CBLReplicatedDocument alloc] initWithC4DocumentEnded: &end];
AssertEqualObjects(replicatedDoc.id, @"docID");
Assert((replicatedDoc.flags & kCBLDocumentFlagsDeleted) == kCBLDocumentFlagsDeleted);
AssertEqual(replicatedDoc.c4Error.code, kC4ErrorBusy);
AssertEqual(replicatedDoc.c4Error.domain, 1);
AssertEqual(replicatedDoc.error.code, kC4ErrorBusy);
AssertEqualObjects(replicatedDoc.collection, kCBLDefaultCollectionName);
AssertEqualObjects(replicatedDoc.scope, kCBLDefaultScopeName);

[replicatedDoc updateError: nil];
AssertEqual(replicatedDoc.c4Error.code, 0);
AssertEqual(replicatedDoc.c4Error.domain, 0);
AssertNil(replicatedDoc.error);
}
//- (void) testReplicatedDocument {
// C4DocumentEnded end;
// end.docID = c4str("docID");
// end.revID = c4str("revID");
// end.flags = kRevDeleted;
// end.error = c4error_make(1, kC4ErrorBusy, c4str("error"));
// end.errorIsTransient = true;
// end.collectionSpec = kC4DefaultCollectionSpec;
//
// CBLReplicatedDocument* replicatedDoc = [[CBLReplicatedDocument alloc] initWithC4DocumentEnded: &end];
// AssertEqualObjects(replicatedDoc.id, @"docID");
// Assert((replicatedDoc.flags & kCBLDocumentFlagsDeleted) == kCBLDocumentFlagsDeleted);
// AssertEqual(replicatedDoc.c4Error.code, kC4ErrorBusy);
// AssertEqual(replicatedDoc.c4Error.domain, 1);
// AssertEqual(replicatedDoc.error.code, kC4ErrorBusy);
// AssertEqualObjects(replicatedDoc.collection, kCBLDefaultCollectionName);
// AssertEqualObjects(replicatedDoc.scope, kCBLDefaultScopeName);
//
// [replicatedDoc updateError: nil];
// AssertEqual(replicatedDoc.c4Error.code, 0);
// AssertEqual(replicatedDoc.c4Error.domain, 0);
// AssertNil(replicatedDoc.error);
//}

# pragma mark - Change Listener

Expand Down

0 comments on commit ae037f6

Please sign in to comment.