summaryrefslogtreecommitdiff
path: root/jstests/core/txns/transactions_block_ddl.js
diff options
context:
space:
mode:
authorJames Wahlin <james@mongodb.com>2018-07-20 09:05:04 -0400
committerJames Wahlin <james@mongodb.com>2018-07-24 13:09:41 -0400
commit35528523c00b72a210dc5b78a427d90ed1c14331 (patch)
treee666ffa680ffc39ca0bdbce323ac2fb116dedf6a /jstests/core/txns/transactions_block_ddl.js
parent9175c4deba82dc35606d14428d1bf0d8b43d7a6c (diff)
downloadmongo-35528523c00b72a210dc5b78a427d90ed1c14331.tar.gz
SERVER-35031 Return MaxTimeMSExpired for maxTimeMS timeout
Adds a new 'MaxTimeMSExpired' error code, returned when a timeout occurs due to exceeding of maxTimeMS. Timeouts unrelated to maxTimeMS will continue to return 'ExceededTimeLimit'.
Diffstat (limited to 'jstests/core/txns/transactions_block_ddl.js')
-rw-r--r--jstests/core/txns/transactions_block_ddl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/txns/transactions_block_ddl.js b/jstests/core/txns/transactions_block_ddl.js
index 0d6c4d1aa56..298795d004f 100644
--- a/jstests/core/txns/transactions_block_ddl.js
+++ b/jstests/core/txns/transactions_block_ddl.js
@@ -27,7 +27,7 @@
assert.commandWorked(sessionColl.insert({a: 5, b: 6}));
assert.commandFailedWithCode(
testDB.getSiblingDB(cmdDBName).runCommand(Object.assign({}, ddlCmd, {maxTimeMS: 500})),
- ErrorCodes.ExceededTimeLimit);
+ ErrorCodes.MaxTimeMSExpired);
assert.commandWorked(session.commitTransaction_forTesting());
}