summaryrefslogtreecommitdiff
path: root/jstests/replsets/stepdown_catch_up_opt.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/stepdown_catch_up_opt.js')
-rw-r--r--jstests/replsets/stepdown_catch_up_opt.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/stepdown_catch_up_opt.js b/jstests/replsets/stepdown_catch_up_opt.js
index 48bd11adde1..4fd88748ae4 100644
--- a/jstests/replsets/stepdown_catch_up_opt.js
+++ b/jstests/replsets/stepdown_catch_up_opt.js
@@ -17,7 +17,7 @@
// Error codes we expect to see.
// If the secondary is not caught up.
- var noCaughtUpSecondariesCode = 50;
+ const noCaughtUpSecondariesCode = ErrorCodes.ExceededTimeLimit;
// If the stepdown period is shorter than the secondaryCatchUpPeriodSecs argument.
var stepDownPeriodTooShortCode = 2;