Skip to content

Commit 2c07470

Browse files
committed
tests: Calibrate benchmarks to take 1-3mins each
Signed-off-by: Marcel Klehr <[email protected]>
1 parent f9c2916 commit 2c07470

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/test/test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6917,7 +6917,7 @@ describe('Floccus', function() {
69176917
const setInterrupt = () => {
69186918
if (!timeouts.length) {
69196919
timeouts = new Array(1000).fill(0).map(() =>
6920-
ACCOUNT_DATA.type === 'nextcloud-bookmarks' ? random.int(50000, 150000) : (IS_CI ? random.int(200, 10000) : random.int(200, 5000))
6920+
ACCOUNT_DATA.type === 'nextcloud-bookmarks' ? random.int(50000, 150000) : (IS_CI ? random.int(200, 10000) : random.int(200, 4000))
69216921
)
69226922
}
69236923
const timeout = timeouts[(i++) % 1000]
@@ -7061,7 +7061,7 @@ describe('Floccus', function() {
70617061
}
70627062
}
70637063

7064-
await createTree(localRoot, 0, 600) // n ~ 3000
7064+
await createTree(localRoot, 0, 1000)
70657065

70667066
const tree1Initial = await account1.localTree.getBookmarksTree(true)
70677067
await account1.sync()
@@ -7212,7 +7212,7 @@ describe('Floccus', function() {
72127212
}
72137213
}
72147214

7215-
await createTree(localRoot, 0, 600) // n ~ 3000
7215+
await createTree(localRoot, 0, 1000)
72167216

72177217
let tree1Initial = await account1.localTree.getBookmarksTree(true)
72187218
await account1.sync()
@@ -7443,7 +7443,7 @@ describe('Floccus', function() {
74437443
}
74447444
}
74457445

7446-
await createTree(localRoot, 0, 600) // n ~ 3000
7446+
await createTree(localRoot, 0, 1000)
74477447

74487448
let tree1Initial = await account1.localTree.getBookmarksTree(true)
74497449
await account1.sync()
@@ -7685,7 +7685,7 @@ describe('Floccus', function() {
76857685
}
76867686
}
76877687

7688-
await createTree(localRoot, 0, 600) // n ~ 3000
7688+
await createTree(localRoot, 0, 1000)
76897689

76907690
let tree1Initial = await account1.localTree.getBookmarksTree(true)
76917691
await account1.sync()
@@ -7923,7 +7923,7 @@ describe('Floccus', function() {
79237923
}
79247924
}
79257925

7926-
await createTree(localRoot, 0, 600) // n ~ 3000
7926+
await createTree(localRoot, 0, 1000)
79277927

79287928
let tree1Initial = await account1.localTree.getBookmarksTree(true)
79297929
await syncAccountWithInterrupts(account1)
@@ -8180,7 +8180,7 @@ describe('Floccus', function() {
81808180
}
81818181
}
81828182

8183-
await createTree(localRoot, 0, 600) // n ~ 3000
8183+
await createTree(localRoot, 0, 1000)
81848184

81858185
let tree1Initial = await account1.localTree.getBookmarksTree(true)
81868186
await account1.sync()
@@ -8424,7 +8424,7 @@ describe('Floccus', function() {
84248424
}
84258425
}
84268426

8427-
await createTree(localRoot, 0, 600) // n ~ 3000
8427+
await createTree(localRoot, 0, 1000)
84288428

84298429
let tree1Initial = await account1.localTree.getBookmarksTree(true)
84308430
await account1.sync()

0 commit comments

Comments
 (0)