mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 04:31:20 -08:00
test(mediabunny): [PKG-MB-09] start hour-scale installed playback checks
This commit is contained in:
1 parent
5795492f0f
commit
d71b6fea38
11 files changed
+301
-13
No files matched your search
@@ -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 }
|
||||
}
|
||||
Reference in new issue
Block a user