diff options
author | Ali Mir <ali.mir@mongodb.com> | 2021-05-28 15:13:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-29 20:46:55 +0000 |
commit | 733c5b0d8171e43a29a759739b5c76cd92dcea69 (patch) | |
tree | 92547881f88ee83d43cb718ba5907325609c96b2 /jstests/multiVersion/libs | |
parent | 6002088a50b003622e4415a2dc069b6d70ab50b4 (diff) | |
download | mongo-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.js | 2 |
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; }; |