test(mediabunny): [PKG-MB-09] start hour-scale installed playback checks

This commit is contained in:
Harvey Zhao committed 2026-09-16 11:20:49 +08:00
1 parent 5795492f0f
commit d71b6fea38
11 files changed
+301 -13

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import assert from 'node:assert/strict'
export function soakOptions(value) {
const phaseSeconds = value === undefined ? 90 : Number(value)
assert(Number.isInteger(phaseSeconds) && phaseSeconds >= 90 && phaseSeconds <= 3600, 'ARTPLAYER_MB_SOAK_SECONDS must be 90..3600 whole seconds per phase')
return { phaseSeconds, minimumMediaSeconds: Math.max(600, phaseSeconds * 3 + 60), timeoutMs: phaseSeconds * 2000 + 90000 }
}