From ae037f690aa56ea4d65b7bb95f94a68a72d67076 Mon Sep 17 00:00:00 2001 From: Vlad Velicu Date: Thu, 31 Oct 2024 15:44:08 +0000 Subject: [PATCH] disable testReplicatedDocument --- Objective-C/Tests/ReplicatorTest+Main.m | 46 ++++++++++++------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/Objective-C/Tests/ReplicatorTest+Main.m b/Objective-C/Tests/ReplicatorTest+Main.m index 3155e8beb..30cf0ea44 100644 --- a/Objective-C/Tests/ReplicatorTest+Main.m +++ b/Objective-C/Tests/ReplicatorTest+Main.m @@ -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