We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0410f35 commit 1c72db3Copy full SHA for 1c72db3
Tests/MongoSwiftTests/ChangeStreamTests.swift
@@ -106,7 +106,9 @@ final class ChangeStreamTests: MongoSwiftTestCase {
106
try? db.collection(self.getCollectionName()).drop().wait()
107
let coll = try db.createCollection(self.getCollectionName()).wait()
108
109
- let stream = try coll.watch().wait()
+ let options = ChangeStreamOptions(maxAwaitTimeMS: 10000)
110
+
111
+ let stream = try coll.watch(options: options).wait()
112
expect(stream.isAlive).to(beTrue())
113
114
// initially, no events, but stream should stay alive
0 commit comments