diff options
author | Misha Tyulenev <misha@mongodb.com> | 2017-11-22 14:02:52 -0500 |
---|---|---|
committer | Misha Tyulenev <misha@mongodb.com> | 2018-07-19 15:33:29 -0400 |
commit | 1d20fa01abff8fcaad0e717eaed11a4266b2743a (patch) | |
tree | 197e8bca66622bc7f776284af1604ffb0754533f /jstests | |
parent | 646d68003cadcd60fed5abaf1e92368390a4a1cb (diff) | |
download | mongo-1d20fa01abff8fcaad0e717eaed11a4266b2743a.tar.gz |
SERVER-32056 increase maxExpireTime in tests to account for rounding
(cherry picked from commit 74cc79ad3380dcd6a7e708302c91e21101b24434)
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/sharding/keys_rotation_interval_sec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/keys_rotation_interval_sec.js b/jstests/sharding/keys_rotation_interval_sec.js index 3810e390d6a..e9cb873fb67 100644 --- a/jstests/sharding/keys_rotation_interval_sec.js +++ b/jstests/sharding/keys_rotation_interval_sec.js @@ -13,7 +13,8 @@ }); let keys = st.s.getDB("admin").system.keys.find(); - let maxExpireTime = Timestamp(Date.now() / 1000 + kRotationInterval * 2, 0); + // add a few seconds to the expire timestamp to account for rounding that may happen. + let maxExpireTime = Timestamp(Date.now() / 1000 + kRotationInterval * 2 + 5, 0); assert(keys.count() >= 2); keys.toArray().forEach(function(key, i) { |