瀏覽代碼

fix off by 1 error in Doc updater client helper file

Henry Oswald 5 年之前
父節點
當前提交
0cdeffae6c
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/document-updater/test/acceptance/js/helpers/DocUpdaterClient.js

+ 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 {