summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2017-07-12 15:48:15 -0400
committerSpencer Jackson <spencer.jackson@mongodb.com>2017-08-03 10:51:30 -0400
commit2b3668af0fc86f1b7b210fc7ca3571b8436a0fba (patch)
tree0b24a730cfe85098f234a63ab684e973ea265c1b /jstests/auth
parenta8a9854b666515d48720cf2b203553954b6a75e6 (diff)
downloadmongo-2b3668af0fc86f1b7b210fc7ca3571b8436a0fba.tar.gz
SERVER-25855: Increase mongos_cache_invalidation.js timeout to 10 seconds
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/mongos_cache_invalidation.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/jstests/auth/mongos_cache_invalidation.js b/jstests/auth/mongos_cache_invalidation.js
index e36445cac5e..b53656de3a1 100644
--- a/jstests/auth/mongos_cache_invalidation.js
+++ b/jstests/auth/mongos_cache_invalidation.js
@@ -61,7 +61,7 @@ db3.auth('spencer', 'pwd');
* At this point we have 3 handles to the "test" database, each of which are on connections to
* different mongoses. "db1", "db2", and "db3" are all auth'd as spencer@test and will be used
* to verify that user and role data changes get propaged to their mongoses.
- * "db2" is connected to a mongos with a 10 second user cache invalidation interval,
+ * "db2" is connected to a mongos with a 5 second user cache invalidation interval,
* while "db3" is connected to a mongos with a 10 minute cache invalidation interval.
*/
@@ -202,12 +202,9 @@ db3.auth('spencer', 'pwd');
assert.commandFailedWithCode(db1.foo.runCommand("collStats"), authzErrorCode);
// s1/db2 should update its cache in 10 seconds.
- assert.soon(
- function() {
- return db2.foo.runCommand("collStats").code == authzErrorCode;
- },
- "Mongos did not update its user cache after 10 seconds",
- 6 * 1000); // Give an extra 1 second to avoid races
+ assert.soon(function() {
+ return db2.foo.runCommand("collStats").code == authzErrorCode;
+ }, "Mongos did not update its user cache after 10 seconds", 10 * 1000);
// We manually invalidate the cache on s2/db3.
db3.adminCommand("invalidateUserCache");