diff options
author | Randolph Tan <randolph@10gen.com> | 2016-10-12 17:01:17 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2016-10-17 13:31:43 -0400 |
commit | 26cb6b14f4a2ab445293e3503f53e32c19e0dd53 (patch) | |
tree | e6bd6096e849adadbde4b126578b43b790485c24 /jstests | |
parent | b11e97b8a85e2f3c2c29430884bb5d93bfc8da52 (diff) | |
download | mongo-26cb6b14f4a2ab445293e3503f53e32c19e0dd53.tar.gz |
SERVER-26610 add maxTimeMS to setFeatureCompatibilityVersion call in set_feature_compatibility_version.js
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/multiVersion/set_feature_compatibility_version.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/multiVersion/set_feature_compatibility_version.js b/jstests/multiVersion/set_feature_compatibility_version.js index bc71a7b27f5..ce99ff88b6c 100644 --- a/jstests/multiVersion/set_feature_compatibility_version.js +++ b/jstests/multiVersion/set_feature_compatibility_version.js @@ -329,7 +329,8 @@ // contacted. The config server primary should still report "3.4", since setting the version to // "3.2" did not succeed. st.rs0.getPrimary().discardMessagesFrom(st.configRS.getPrimary(), 1.0); - assert.commandFailed(mongosAdminDB.runCommand({setFeatureCompatibilityVersion: "3.2"})); + assert.commandFailed( + mongosAdminDB.runCommand({setFeatureCompatibilityVersion: "3.2", maxTimeMS: 1000})); res = configPrimaryAdminDB.runCommand({getParameter: 1, featureCompatibilityVersion: 1}); assert.commandWorked(res); assert.eq(res.featureCompatibilityVersion, "3.4"); |