возможно исправил ошибку таймера с vMix
This commit is contained in:
@@ -22,27 +22,31 @@ def test_vmix_queue_resolves_countdown_values_at_actual_send_time():
|
||||
assert 'const clean = (rawCommands || []).map(compactVmixCommand)' in sender
|
||||
|
||||
|
||||
def test_countdown_start_is_deterministic_suspend_set_start():
|
||||
def test_countdown_start_is_simple_set_start():
|
||||
helper = _block("function vmixCountdownSyncCommands", "function buildShortcutRuntimeContext")
|
||||
start_branch = helper.split('return [', 3)[-1]
|
||||
assert start_branch.index('Function: "SuspendCountdown"') < start_branch.index('Function: "SetCountdown"')
|
||||
assert 'Function: "SuspendCountdown"' not in start_branch
|
||||
assert start_branch.index('Function: "SetCountdown"') < start_branch.index('Function: "StartCountdown"')
|
||||
assert 'Value: currentValue' in helper
|
||||
|
||||
|
||||
def test_pause_uses_suspend_not_toggle_pausecountdown():
|
||||
def test_pause_and_stop_use_stop_then_set():
|
||||
helper = _block("function vmixCountdownSyncCommands", "function buildShortcutRuntimeContext")
|
||||
pause = helper.split('if (action === "pause")', 1)[1].split('return [', 1)[1].split('];', 1)[0]
|
||||
assert 'Function: "SuspendCountdown"' in pause
|
||||
assert 'Function: "PauseCountdown"' not in pause
|
||||
assert pause.index('Function: "SuspendCountdown"') < pause.index('Function: "SetCountdown"')
|
||||
branch = helper.split('if (action === "stop" || action === "pause")', 1)[1].split('return [', 1)[1].split('];', 1)[0]
|
||||
assert 'Function: "StopCountdown"' in branch
|
||||
assert 'Function: "SetCountdown"' in branch
|
||||
assert branch.index('Function: "StopCountdown"') < branch.index('Function: "SetCountdown"')
|
||||
assert 'Function: "SuspendCountdown"' not in branch
|
||||
assert 'Function: "PauseCountdown"' not in branch
|
||||
|
||||
|
||||
def test_penalty_rebalance_hard_syncs_running_countdown_and_pauses_stably():
|
||||
block = _block("async function rebalanceVmixPenaltyTargets", "function finishActionMatchesSource")
|
||||
assert 'stopCommands.push({ Function: "SuspendCountdown"' in block
|
||||
assert 'stopCommands.push({ Function: "StopCountdown"' in block
|
||||
assert 'Value: () => vmixCountdownValue(entry.event.remainingMs)' in block
|
||||
assert 'runCommands.push({ Function: "StartCountdown"' in block
|
||||
assert 'sendRuntimeVmixTimerSequence(commands)' in block
|
||||
assert 'Function: "SuspendCountdown"' not in block
|
||||
assert 'Function: "PauseCountdown"' not in block
|
||||
|
||||
|
||||
@@ -64,4 +68,4 @@ def test_fixed_pin_1993_replaces_daily_login(tmp_path, monkeypatch):
|
||||
|
||||
|
||||
def test_build98_runtime_version():
|
||||
assert 'BUILD_VERSION = "2026.08.24.1"' in APP
|
||||
assert 'BUILD_VERSION = "2026.08.24.4"' in APP
|
||||
|
||||
Reference in New Issue
Block a user