fix: isolate ICDB checks and recover scoped native sessions
This commit is contained in:
1 parent
1acfbd6374
commit
1bd7589fef
82 files changed
+7770
-1583
No files matched your search
@@ -12,6 +12,17 @@ def test_phase_duration_uses_worker_monotonic_time_not_delayed_poll_time():
|
||||
assert timer.snapshot()[0]['pcb_startup'] == 132.0
|
||||
|
||||
|
||||
def test_opening_check_ends_startup_and_close_without_starting_integration():
|
||||
timer = RunTimings(clock=lambda: 50.0)
|
||||
timer.record({'stage': 'pcb_launch', 'monotonic_seconds': 10})
|
||||
timer.record({'stage': 'diagnostic_native_loaded_candidate', 'monotonic_seconds': 30})
|
||||
timer.record({'stage': 'diagnostic_complete', 'monotonic_seconds': 38})
|
||||
values, unfinished = timer.snapshot()
|
||||
assert values['pcb_startup'] == 20
|
||||
assert values['diagnostic_close'] == 8
|
||||
assert 'integration' not in values and not unfinished
|
||||
|
||||
|
||||
def test_action_and_save_subtimings_accumulate_real_durations():
|
||||
timer = RunTimings(clock=lambda: 1000.0)
|
||||
timer.record({'stage': 'integration_action_complete', 'action': 'ForwardAnnotate',
|
||||
|
||||
Reference in new issue
Block a user