Skip to content

Commit b851d01

Browse files
committed
tests: Improve chances of interrupt sync tests succeeding
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent d92aaa7 commit b851d01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6920,8 +6920,8 @@ describe('Floccus', function() {
69206920
ACCOUNT_DATA.type === 'nextcloud-bookmarks'
69216921
// Produce random numbers of timeouts between 30s and increasing numbers between 30s and 180s (increasing for stretches of 20 items, then going back to 30s)
69226922
? random.int(30000, Math.round(30000 + (180000 - 30000) * (index % 20) / 20))
6923-
// Produce random numbers of timeouts between 4s and increasing numbers between 4s and 20s (increasing for stretches of 20 items, then going back to 4s)
6924-
: random.int(4000, Math.round(4000 + (20000 - 4000) * (index % 20) / 20))
6923+
// Produce random numbers of timeouts between 4s and increasing numbers between 4s and 60s (increasing for stretches of 20 items, then going back to 4s)
6924+
: random.int(4000, Math.round(4000 + (60000 - 4000) * (index % 20) / 20))
69256925
)
69266926
}
69276927
const timeout = timeouts[(i++) % 1000]

0 commit comments

Comments
 (0)