Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu committed Aug 28, 2024
1 parent f7b23d1 commit eacfabc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions testdata/crud/unified/bulkWrite-replaceOne-sort.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
]
},
"expectError": {
"errorContains": "'update.sort' is an unknown field",
"errorContains": "'update.updates.sort' is an unknown field",
"isClientError": false
}
}
Expand Down Expand Up @@ -231,7 +231,7 @@
},
{
"_id": 3,
"x": 1
"x": 33
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/crud/unified/bulkWrite-updateOne-sort.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
]
},
"expectError": {
"errorContains": "'update.sort' is an unknown field",
"errorContains": "'update.updates.sort' is an unknown field",
"isClientError": false
}
}
Expand Down
12 changes: 4 additions & 8 deletions testdata/crud/unified/replaceOne-sort.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,12 @@
"sort": {
"_id": -1
},
"update": {
"$inc": {
"x": 1
}
"replacement": {
"x": 1
}
},
"expectError": {
"errorContains": "'update.sort' is an unknown field",
"errorContains": "'update.updates.sort' is an unknown field",
"isClientError": false
}
}
Expand All @@ -192,9 +190,7 @@
}
},
"u": {
"$inc": {
"x": 1
}
"x": 1
},
"sort": {
"_id": -1
Expand Down
2 changes: 1 addition & 1 deletion testdata/crud/unified/updateMany-sort.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
}
},
"expectError": {
"errorContains": "'update.sort' is an unknown field",
"errorContains": "'update.updates.sort' is an unknown field",
"isClientError": false
}
}
Expand Down
6 changes: 4 additions & 2 deletions testdata/crud/unified/updateOne-sort.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
}
},
"expectError": {
"errorContains": "'update.sort' is an unknown field",
"errorContains": "'update.updates.sort' is an unknown field",
"isClientError": false
}
}
Expand Down Expand Up @@ -206,7 +206,9 @@
"upsert": {
"$$unsetOrMatches": false
},
"multi": true
"multi": {
"$$unsetOrMatches": false
}
}
]
}
Expand Down

0 comments on commit eacfabc

Please sign in to comment.