summaryrefslogtreecommitdiff
path: root/jstests/multiVersion/libs
diff options
context:
space:
mode:
authorAli Mir <ali.mir@mongodb.com>2021-05-28 15:13:03 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-29 20:46:55 +0000
commit733c5b0d8171e43a29a759739b5c76cd92dcea69 (patch)
tree92547881f88ee83d43cb718ba5907325609c96b2 /jstests/multiVersion/libs
parent6002088a50b003622e4415a2dc069b6d70ab50b4 (diff)
downloadmongo-733c5b0d8171e43a29a759739b5c76cd92dcea69.tar.gz
SERVER-57157 Assert serverStatus command works in getBinVersion() jstest helper
(cherry picked from commit abda02c1aa43b6ce053eb8857d1724dceee43fd2)
Diffstat (limited to 'jstests/multiVersion/libs')
-rw-r--r--jstests/multiVersion/libs/verify_versions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/multiVersion/libs/verify_versions.js b/jstests/multiVersion/libs/verify_versions.js
index fcc9345e276..4daa06e5175 100644
--- a/jstests/multiVersion/libs/verify_versions.js
+++ b/jstests/multiVersion/libs/verify_versions.js
@@ -6,7 +6,7 @@ var Mongo, assert;
(function() {
"use strict";
Mongo.prototype.getBinVersion = function() {
- var result = this.getDB("admin").runCommand({serverStatus: 1});
+ var result = assert.commandWorked(this.getDB("admin").runCommand({serverStatus: 1}));
return result.version;
};