Skip to content

Commit 6ccebae

Browse files
authored
CBL-6987: Keep test consistent (#3394)
1 parent 09721dc commit 6ccebae

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Swift/Tests/PublisherTest.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class PublisherTest: CBLTestCase {
3939

4040
func testCollectionChangePublisher() throws {
4141
let expect = self.expectation(description: "Collection changed")
42-
expect.expectedFulfillmentCount = 2
4342

4443
defaultCollection!.changePublisher()
4544
.sink { change in
@@ -51,14 +50,12 @@ class PublisherTest: CBLTestCase {
5150
// it also saves the document into the db
5251
let doc = try generateDocument(withID: "doc1")
5352

54-
try defaultCollection!.save(document: doc)
5553
XCTAssert(cancellables.count == 1)
5654
waitForExpectations(timeout: expTimeout)
5755
}
5856

5957
func testCollectionDocumentChangePublisher() throws {
6058
let expect = self.expectation(description: "Document changed")
61-
expect.expectedFulfillmentCount = 2
6259

6360
defaultCollection!.documentChangePublisher(for: "doc1")
6461
.sink { change in
@@ -70,7 +67,6 @@ class PublisherTest: CBLTestCase {
7067
// it also saves the document into the db
7168
let doc = try generateDocument(withID: "doc1")
7269

73-
try defaultCollection!.save(document: doc)
7470
XCTAssert(cancellables.count == 1)
7571
waitForExpectations(timeout: expTimeout)
7672
}

0 commit comments

Comments
 (0)