File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ class PublisherTest: CBLTestCase {
39
39
40
40
func testCollectionChangePublisher( ) throws {
41
41
let expect = self . expectation ( description: " Collection changed " )
42
- expect. expectedFulfillmentCount = 2
43
42
44
43
defaultCollection!. changePublisher ( )
45
44
. sink { change in
@@ -51,14 +50,12 @@ class PublisherTest: CBLTestCase {
51
50
// it also saves the document into the db
52
51
let doc = try generateDocument ( withID: " doc1 " )
53
52
54
- try defaultCollection!. save ( document: doc)
55
53
XCTAssert ( cancellables. count == 1 )
56
54
waitForExpectations ( timeout: expTimeout)
57
55
}
58
56
59
57
func testCollectionDocumentChangePublisher( ) throws {
60
58
let expect = self . expectation ( description: " Document changed " )
61
- expect. expectedFulfillmentCount = 2
62
59
63
60
defaultCollection!. documentChangePublisher ( for: " doc1 " )
64
61
. sink { change in
@@ -70,7 +67,6 @@ class PublisherTest: CBLTestCase {
70
67
// it also saves the document into the db
71
68
let doc = try generateDocument ( withID: " doc1 " )
72
69
73
- try defaultCollection!. save ( document: doc)
74
70
XCTAssert ( cancellables. count == 1 )
75
71
waitForExpectations ( timeout: expTimeout)
76
72
}
You can’t perform that action at this time.
0 commit comments