From c3e570afe67b460f5b4226bc7930c4cba3523294 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Mon, 1 Jul 2019 21:16:06 -0400 Subject: [PATCH] Reinstate duplicate key assertion --- spec/spec_tests/data/transactions/error-labels.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/spec_tests/data/transactions/error-labels.yml b/spec/spec_tests/data/transactions/error-labels.yml index 8b90473ab5..8793e1eb8a 100644 --- a/spec/spec_tests/data/transactions/error-labels.yml +++ b/spec/spec_tests/data/transactions/error-labels.yml @@ -29,6 +29,9 @@ tests: # 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