Skip to content

Commit ac4636a

Browse files
committed
last fix
1 parent 1edda9a commit ac4636a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/test/spec/unified_runner/operation.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,10 +1070,9 @@ impl TestOperation for FindOne {
10701070
) -> BoxFuture<'a, Result<Option<Entity>>> {
10711071
async move {
10721072
let collection = test_runner.get_collection(id).await;
1073-
let options: FindOptions = self.options.clone().into();
10741073
let result = collection
10751074
.find_one(self.filter.clone().unwrap_or_default())
1076-
.with_options(options)
1075+
.with_options(self.options.clone())
10771076
.await?;
10781077
match result {
10791078
Some(result) => Ok(Some(Bson::from(result).into())),

src/test/spec/v2_runner/operation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ impl TestOperation for FindOne {
680680
async move {
681681
let action = collection
682682
.find_one(self.filter.clone().unwrap_or_default())
683-
.with_options(self.options.clone().map(FindOptions::from));
683+
.with_options(self.options.clone());
684684
let result = match session {
685685
Some(session) => action.session(session).await?,
686686
None => action.await?,

0 commit comments

Comments
 (0)