diff options
author | jannaerin <golden.janna@gmail.com> | 2018-09-14 11:49:49 -0700 |
---|---|---|
committer | jannaerin <golden.janna@gmail.com> | 2018-09-14 15:11:01 -0700 |
commit | 8904976eb73a8328e5c4be460c13e79bb131d253 (patch) | |
tree | 0b33ac77eead0f956f70fb2211aae09abd4bc2d0 | |
parent | 8f4ef548bbe6b6e6cf6a975d649477e28bbc9808 (diff) | |
download | mongo-8904976eb73a8328e5c4be460c13e79bb131d253.tar.gz |
SERVER-37145 Fix reference error in error msg in cleanup_txns.js
-rw-r--r-- | jstests/concurrency/fsm_workload_helpers/cleanup_txns.js | 2 | ||||
-rw-r--r-- | jstests/concurrency/fsm_workloads/view_catalog_cycle_with_drop.js | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/jstests/concurrency/fsm_workload_helpers/cleanup_txns.js b/jstests/concurrency/fsm_workload_helpers/cleanup_txns.js index ee94c835d8a..098907f2cb3 100644 --- a/jstests/concurrency/fsm_workload_helpers/cleanup_txns.js +++ b/jstests/concurrency/fsm_workload_helpers/cleanup_txns.js @@ -8,7 +8,7 @@ function abortTransaction(db, txnNumber, errorCodes) { const abortCmd = {abortTransaction: 1, txnNumber: NumberLong(txnNumber), autocommit: false}; const res = db.adminCommand(abortCmd); - return assert.commandWorkedOrFailedWithCode(res, errorCodes, () => `cmd: ${tojson(cmd)}`); + return assert.commandWorkedOrFailedWithCode(res, errorCodes, () => `cmd: ${tojson(abortCmd)}`); } /** diff --git a/jstests/concurrency/fsm_workloads/view_catalog_cycle_with_drop.js b/jstests/concurrency/fsm_workloads/view_catalog_cycle_with_drop.js index 4673cdbeed5..d7eb28009cf 100644 --- a/jstests/concurrency/fsm_workloads/view_catalog_cycle_with_drop.js +++ b/jstests/concurrency/fsm_workloads/view_catalog_cycle_with_drop.js @@ -48,12 +48,11 @@ var $config = (function() { let res = db.runCommand(dropCmd); let errorCodes = [ErrorCodes.NamespaceNotFound]; assertAlways.commandWorkedOrFailedWithCode( - db.runCommand(dropCmd), errorCodes, () => `cmd: ${tojson(cmd)}`); + db.runCommand(dropCmd), errorCodes, () => `cmd: ${tojson(dropCmd)}`); res = db.createView(viewName, collName, []); errorCodes = [ErrorCodes.NamespaceExists, ErrorCodes.NamespaceNotFound]; - assertAlways.commandWorkedOrFailedWithCode( - res, errorCodes, () => `cmd: ${tojson(cmd)}`); + assertAlways.commandWorkedOrFailedWithCode(res, errorCodes, () => `cmd: createView`); } /** |