Skip to content

Commit c364dfb

Browse files
add prose tests
1 parent 7ce1b7a commit c364dfb

File tree

5 files changed

+421
-10
lines changed

5 files changed

+421
-10
lines changed

Cargo.lock

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

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)