Przeglądaj źródła

fix off by 1 error in Doc updater client helper file

Henry Oswald 5 lat temu
rodzic
commit
0cdeffae6c

+ 1 - 1
services/document-updater/test/acceptance/js/helpers/DocUpdaterClient.js

@@ -28,7 +28,7 @@ module.exports = DocUpdaterClient = {
   },
 
   _getPendingUpdateListKey() {
-    const shard = _.random(0, Settings.dispatcherCount)
+    const shard = _.random(0, Settings.dispatcherCount - 1)
     if (shard === 0) {
       return 'pending-updates-list'
     } else {