fix: hand off UI shutdown without releasing native ownership
This commit is contained in:
1 parent
cd7a5e0ca1
commit
dbc685b9a5
10 files changed
+454
-52
No files matched your search
@@ -559,7 +559,8 @@ def test_queue_close_has_one_deadline_and_reports_pending_scope(tmp_path):
|
||||
thread.join(2)
|
||||
|
||||
|
||||
def test_real_management_transaction_does_not_handoff_between_remove_and_add(management_setup, monkeypatch):
|
||||
@pytest.mark.parametrize('native_policy', ['legacy', 'external'])
|
||||
def test_real_management_transaction_does_not_handoff_between_remove_and_add(management_setup, monkeypatch, native_policy):
|
||||
from dataclasses import replace
|
||||
from types import SimpleNamespace
|
||||
from test_management import execute
|
||||
@@ -576,7 +577,7 @@ def test_real_management_transaction_does_not_handoff_between_remove_and_add(man
|
||||
time.sleep(.08) # Let the real admission monitor observe the active native phase.
|
||||
return result
|
||||
adapter.remove = slow_remove # Native external boundary; transaction stays real.
|
||||
context = BatchTaskContext(library=str(request.library), targets=('Block',))
|
||||
context = BatchTaskContext(library=str(request.library), targets=('Block',), native_policy=native_policy)
|
||||
result = NativeQueue().run(lambda: execute(replace(request, operation='update',
|
||||
source=source, auto_verify=False), adapter), context=context, timeout_seconds=10)
|
||||
assert result.status == 'UPLOADED'
|
||||
|
||||
Reference in new issue
Block a user