File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
driver-core/src/test/resources/unified-test-format/crud
driver-sync/src/test/functional/com/mongodb/client/unified Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 63
63
}
64
64
},
65
65
"expectResult" : {
66
- "insertedCount" : 1 ,
67
66
"insertedId" : {
68
67
"$$unsetOrMatches" : 1
69
68
}
166
165
}
167
166
},
168
167
"expectResult" : {
169
- "insertedCount" : 1 ,
170
168
"insertedId" : {
171
169
"$$unsetOrMatches" : 1
172
170
}
221
219
}
222
220
},
223
221
"expectResult" : {
224
- "insertedCount" : 1 ,
225
222
"insertedId" : {
226
223
"$$unsetOrMatches" : 1
227
224
}
280
277
}
281
278
},
282
279
"expectResult" : {
283
- "insertedCount" : 1 ,
284
280
"insertedId" : {
285
281
"$$unsetOrMatches" : 1
286
282
}
390
386
}
391
387
},
392
388
"expectResult" : {
393
- "insertedCount" : 1 ,
394
389
"insertedId" : {
395
390
"$$unsetOrMatches" : {
396
391
"a.b" : 1
501
496
}
502
497
},
503
498
"expectResult" : {
504
- "insertedCount" : 1 ,
505
499
"insertedId" : {
506
500
"$$unsetOrMatches" : 1
507
501
}
Original file line number Diff line number Diff line change @@ -529,8 +529,7 @@ OperationResult executeInsertOne(final BsonDocument operation) {
529
529
530
530
private BsonDocument toExpected (final InsertOneResult result ) {
531
531
if (result .wasAcknowledged ()) {
532
- return new BsonDocument ("insertedId" , result .getInsertedId ())
533
- .append ("insertedCount" , new BsonInt32 (1 ));
532
+ return new BsonDocument ("insertedId" , result .getInsertedId ());
534
533
} else {
535
534
return new BsonDocument ();
536
535
}
You can’t perform that action at this time.
0 commit comments