Skip to content

Commit 2590d4c

Browse files
add prose tests
1 parent 59cab56 commit 2590d4c

File tree

6 files changed

+423
-13
lines changed

6 files changed

+423
-13
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,10 @@ optional = true
170170
features = ["serde"]
171171

172172
[dependencies.mongocrypt]
173-
version = "0.3.1"
174-
git = "https://github.com/mongodb/libmongocrypt-rust.git"
175-
branch = "main"
173+
# version = "0.3.1"
174+
# git = "https://github.com/mongodb/libmongocrypt-rust.git"
175+
# branch = "main"
176+
path = "/Users/isabel.atkinson/libmongocrypt-rust/mongocrypt"
176177
default-features = false
177178
optional = true
178179

src/client/csfle.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ impl ClientState {
101101
.use_need_kms_credentials_state()
102102
.retry_kms(true)?
103103
.use_range_v2()?
104-
.use_need_mongo_collinfo_with_db_state();
104+
.use_need_mongo_collinfo_with_db_state()
105+
.enable_multiple_collinfo()?;
105106
if let Some(m) = &opts.schema_map {
106107
builder = builder.schema_map(&crate::bson_compat::serialize_to_document(m)?)?;
107108
}

src/client/csfle/state_machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl CryptExecutor {
116116
Error::internal("db required for NeedMongoCollinfo state")
117117
})?);
118118
let mut cursor = db.list_collections().filter(filter).await?;
119-
if cursor.advance().await? {
119+
while cursor.advance().await? {
120120
ctx.mongo_feed(cursor.current())?;
121121
}
122122
ctx.mongo_done()?;

0 commit comments

Comments
 (0)