Skip to content

Commit fc21cb7

Browse files
authored
DRIVERS-1237: Do not assert insertedCount field for insertOne results (#1028)
This was inadvertently added in 851ca10
1 parent ba8a3f7 commit fc21cb7

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

source/crud/tests/unified/insertOne-dots_and_dollars.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
}
6464
},
6565
"expectResult": {
66-
"insertedCount": 1,
6766
"insertedId": {
6867
"$$unsetOrMatches": 1
6968
}
@@ -166,7 +165,6 @@
166165
}
167166
},
168167
"expectResult": {
169-
"insertedCount": 1,
170168
"insertedId": {
171169
"$$unsetOrMatches": 1
172170
}
@@ -221,7 +219,6 @@
221219
}
222220
},
223221
"expectResult": {
224-
"insertedCount": 1,
225222
"insertedId": {
226223
"$$unsetOrMatches": 1
227224
}
@@ -280,7 +277,6 @@
280277
}
281278
},
282279
"expectResult": {
283-
"insertedCount": 1,
284280
"insertedId": {
285281
"$$unsetOrMatches": 1
286282
}
@@ -390,7 +386,6 @@
390386
}
391387
},
392388
"expectResult": {
393-
"insertedCount": 1,
394389
"insertedId": {
395390
"$$unsetOrMatches": {
396391
"a.b": 1
@@ -501,7 +496,6 @@
501496
}
502497
},
503498
"expectResult": {
504-
"insertedCount": 1,
505499
"insertedId": {
506500
"$$unsetOrMatches": 1
507501
}

source/crud/tests/unified/insertOne-dots_and_dollars.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ tests:
3636
arguments:
3737
document: &dollarPrefixedKey { _id: 1, $a: 1 }
3838
expectResult: &insertResult
39-
insertedCount: 1
4039
insertedId: { $$unsetOrMatches: 1 }
4140
expectEvents: &expectEventsDollarPrefixedKey
4241
- client: *client0
@@ -156,7 +155,6 @@ tests:
156155
arguments:
157156
document: &dottedKeyInId { _id: { a.b: 1 } }
158157
expectResult:
159-
insertedCount: 1
160158
insertedId: { $$unsetOrMatches: { a.b: 1 } }
161159
expectEvents: &expectEventsDottedKeyInId
162160
- client: *client0

0 commit comments

Comments
 (0)