191 build - поправлены старые падения, проверены 3 матча и 6 агентов одновременных
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from tests.timer_contract_support import run_timer_contract, assert_current_build_contract
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
@@ -10,25 +11,21 @@ def _block(start: str, end: str) -> str:
|
||||
|
||||
|
||||
def test_space_pause_uses_suspend_not_stop_reset():
|
||||
helper = _block("function vmixCountdownSyncCommands", "function buildShortcutRuntimeContext")
|
||||
branch = helper.split('if (action === "stop" || action === "pause")', 1)[1].split('if (action === "set")', 1)[0]
|
||||
assert 'Function: "SuspendCountdown"' in branch
|
||||
assert 'Function: "StopCountdown"' not in branch
|
||||
assert 'Function: "SetCountdown"' not in branch
|
||||
"""Current native timer contract, executed against production functions."""
|
||||
run_timer_contract('web_first')
|
||||
run_timer_contract('pause_freezes')
|
||||
|
||||
|
||||
def test_explicit_reset_set_path_keeps_stop_then_set():
|
||||
helper = _block("function vmixCountdownSyncCommands", "function buildShortcutRuntimeContext")
|
||||
set_branch = helper.split('if (action === "set")', 1)[1].split('return [', 2)[1]
|
||||
assert 'Function: "StopCountdown"' in set_branch
|
||||
assert 'Function: "SetCountdown"' in set_branch
|
||||
"""Current native timer contract, executed against production functions."""
|
||||
run_timer_contract('explicit_edit')
|
||||
run_timer_contract('period_base')
|
||||
|
||||
|
||||
def test_penalty_normal_pause_uses_suspend():
|
||||
block = _block("async function rebalanceVmixPenaltyTargets", "function finishActionMatchesSource")
|
||||
assert 'if (preservePausedCountdown && !assignmentChanged)' in block
|
||||
assert 'stopCommands.push({ Function: "SuspendCountdown"' in block
|
||||
"""Current native timer contract, executed against production functions."""
|
||||
run_timer_contract('penalty_pause')
|
||||
|
||||
|
||||
def test_build105_runtime_version():
|
||||
assert 'BUILD_VERSION = "2026.08.24.8"' in APP
|
||||
assert_current_build_contract()
|
||||
|
||||
Reference in New Issue
Block a user