Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix update with query operator for upsert option #3028

Merged
merged 17 commits into from
Jul 14, 2023
Prev Previous commit
Next Next commit
update test name
  • Loading branch information
chilagrow committed Jul 13, 2023
commit 3ad5d5822b4333fa0459b20afc77d99d663d032d
4 changes: 2 additions & 2 deletions integration/update_field_compat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ func TestUpdateFieldCompatSet(t *testing.T) {
testUpdateCompat(t, testCases)
}

func TestUpdateManyFieldCompatSet(t *testing.T) {
func TestUpdateFieldCompatSetMulti(t *testing.T) {
t.Parallel()

testCases := map[string]testUpdateManyCompatTestCase{
Expand All @@ -835,7 +835,7 @@ func TestUpdateManyFieldCompatSet(t *testing.T) {
update: bson.D{{"$set", bson.D{{"new", "val"}}}},
updateOpts: options.Update().SetUpsert(false),
},
"QueryOperatorExistingModified": {
"QueryOperatorModified": {
filter: bson.D{{"v", bson.D{{"$eq", 4080}}}},
update: bson.D{{"$set", bson.D{{"new", "val"}}}},
updateOpts: options.Update().SetUpsert(false),
Expand Down