소스 검색

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 {