spec/spec_tests/data/transactions/abort.yml in mongo-2.7.0 vs spec/spec_tests/data/transactions/abort.yml in mongo-2.7.1
- old
+ new
@@ -295,10 +295,12 @@
arguments:
session: session0
document:
_id: 1
result:
- errorCodeName: DuplicateKey
+ # 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"]
# Make sure the server aborted the transaction.
- name: insertOne
object: collection
arguments: