Skip to content

Commit 1c72db3

Browse files
committed
Increase maxAwaitTimeMS for new change stream test
1 parent 0410f35 commit 1c72db3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/MongoSwiftTests/ChangeStreamTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ final class ChangeStreamTests: MongoSwiftTestCase {
106106
try? db.collection(self.getCollectionName()).drop().wait()
107107
let coll = try db.createCollection(self.getCollectionName()).wait()
108108

109-
let stream = try coll.watch().wait()
109+
let options = ChangeStreamOptions(maxAwaitTimeMS: 10000)
110+
111+
let stream = try coll.watch(options: options).wait()
110112
expect(stream.isAlive).to(beTrue())
111113

112114
// initially, no events, but stream should stay alive

0 commit comments

Comments
 (0)