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 ea426b5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 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
18 changes: 8 additions & 10 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,17 +190,17 @@
}
},
"u": {
"$inc": {
"x": 1
}
"x": 1
},
"sort": {
"_id": -1
},
"upsert": {
"multi": {
"$$unsetOrMatches": false
},
"multi": true
"upsert": {
"$$unsetOrMatches": false
}
}
]
}
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 ea426b5

Please sign in to comment.