spec/support/retryable_writes_tests/findOneAndUpdate.yml in mongo-2.5.3 vs spec/support/retryable_writes_tests/findOneAndUpdate.yml in mongo-2.6.0

- old
+ new

@@ -5,11 +5,14 @@ minServerVersion: '3.6' tests: - description: "FindOneAndUpdate is committed on first attempt" + clientOptions: + retryWrites: true failPoint: + configureFailPoint: onPrimaryTransactionalWrite mode: { times: 1 } operation: name: "findOneAndUpdate" arguments: filter: { _id: 1 } @@ -21,11 +24,14 @@ data: - { _id: 1, x: 12 } - { _id: 2, x: 22 } - description: "FindOneAndUpdate is not committed on first attempt" + clientOptions: + retryWrites: true failPoint: + configureFailPoint: onPrimaryTransactionalWrite mode: { times: 1 } data: { failBeforeCommitExceptionCode: 1 } operation: name: "findOneAndUpdate" arguments: @@ -38,10 +44,13 @@ data: - { _id: 1, x: 12 } - { _id: 2, x: 22 } - description: "FindOneAndUpdate is never committed" + clientOptions: + retryWrites: true failPoint: + configureFailPoint: onPrimaryTransactionalWrite mode: { times: 2 } data: { failBeforeCommitExceptionCode: 1 } operation: name: "findOneAndUpdate" arguments: