Skip to content

Commit 63a0140

Browse files
committed
perf(sanity): optimize bulk job polling configuration
- Max polling attempts: 5 (reduced from 15) - Delay between polls: 5s (increased from 3s) - Initial wait: 15s (kept unchanged) - Test timeout: 30s (reduced from 90s) - Max polling time: 25s (5 attempts × 5s) - Total max time per test: ~40s
1 parent 25c93cc commit 63a0140

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sanity-check/api/bulkOperation-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function assetsWithValidUids () {
4040
return [assetUid1, assetUid2].filter(uid => uid && String(uid).trim()).map(uid => ({ uid }))
4141
}
4242

43-
async function waitForJobReady (jobId, maxAttempts = 8) {
43+
async function waitForJobReady (jobId, maxAttempts = 5) {
4444
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
4545
try {
4646
const response = await doBulkOperation()
@@ -51,7 +51,7 @@ async function waitForJobReady (jobId, maxAttempts = 8) {
5151
} catch (error) {
5252
// retry
5353
}
54-
await delay(3000)
54+
await delay(5000)
5555
}
5656
throw new Error(`Job ${jobId} did not become ready after ${maxAttempts} attempts`)
5757
}

0 commit comments

Comments
 (0)