summaryrefslogtreecommitdiff
path: root/jstests/sharding/max_time_ms_sharded_new_commands.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/max_time_ms_sharded_new_commands.js')
-rw-r--r--jstests/sharding/max_time_ms_sharded_new_commands.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/max_time_ms_sharded_new_commands.js b/jstests/sharding/max_time_ms_sharded_new_commands.js
index 2084f1b711d..c8072359ce1 100644
--- a/jstests/sharding/max_time_ms_sharded_new_commands.js
+++ b/jstests/sharding/max_time_ms_sharded_new_commands.js
@@ -26,7 +26,7 @@
assert.commandFailedWithCode(
admin.runCommand(
{setFeatureCompatibilityVersion: lastStableFCV, maxTimeMS: 1000 * 60 * 60 * 24}),
- ErrorCodes.ExceededTimeLimit,
+ ErrorCodes.MaxTimeMSExpired,
"expected setFeatureCompatibilityVersion to fail due to maxTimeAlwaysTimeOut fail point");
// Negative test for "setFeatureCompatibilityVersion"