spec/spec_tests/data/transactions/error-labels.yml in mongo-2.10.5 vs spec/spec_tests/data/transactions/error-labels.yml in mongo-2.11.0.rc0
- old
+ new
@@ -23,13 +23,13 @@
session: session0
documents:
- _id: 1
- _id: 1
result:
- # Don't assert on errorCodeName because (after SERVER-38583) the
- # DuplicateKey is reported in writeErrors, not as a top-level
- # command error.
errorLabelsOmit: ["TransientTransactionError", "UnknownTransactionCommitResult"]
+ # DuplicateKey error code included in the bulk write error message
+ # returned by the server
+ errorContains: E11000
- name: abortTransaction
object: session0
expectations:
- command_started_event: