...
1description: ignoreResultAndError
2
3schemaVersion: '1.3'
4
5createEntities:
6 - client:
7 id: &client0 client0
8 useMultipleMongoses: true
9 - database:
10 id: &database0 database0
11 client: *client0
12 databaseName: &database0Name database0Name
13 - collection:
14 id: &collection0 collection0
15 database: *database0
16 collectionName: &collection0Name coll0
17
18initialData:
19 - collectionName: *collection0Name
20 databaseName: *database0Name
21 documents: []
22
23tests:
24 - description: operation errors are ignored if ignoreResultAndError is true
25 operations:
26 - name: insertOne
27 object: *collection0
28 arguments:
29 document: &insertDocument { _id: 1 }
30 - name: insertOne
31 object: *collection0
32 arguments:
33 document: *insertDocument
34 ignoreResultAndError: true
View as plain text