From 9a7f92820bea0fe473e35cb1bcb7eb78e2125ea7 Mon Sep 17 00:00:00 2001 From: abrichr Date: Mon, 30 Nov 2026 21:30:50 -0500 Subject: [PATCH] test(flow): encrypted quickstart test follows #2840's act 3 #2840 replaced act 3 with a crash and restart of a batch and renamed run_quickstart's break_it to last_act, so this test failed with a TypeError on main. It now runs act 3, requires the restart to hold, and checks that note-1 and both restart runs are sealed with no unindexed files. --- packages/flow/tests/test_quickstart_encrypted.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/flow/tests/test_quickstart_encrypted.py b/packages/flow/tests/test_quickstart_encrypted.py index 6618fa29c0..0b6445e9d8 100644 --- a/packages/flow/tests/test_quickstart_encrypted.py +++ b/packages/flow/tests/test_quickstart_encrypted.py @@ -94,7 +94,7 @@ def test_quickstart_on_a_fresh_machine_seals_every_run( outcome = run_quickstart( root, visible=False, - break_it=True, + last_act=True, verbose=False, steps=next_steps(lambda command: command, str, True), stream=stream, @@ -103,14 +103,16 @@ def test_quickstart_on_a_fresh_machine_seals_every_run( output = stream.getvalue() runs = len(FlowEngine.inputs) assert outcome.checked == runs, output - assert outcome.broken is not None and outcome.broken.stopped, output + assert outcome.restart is not None and outcome.restart.held, output # Encryption really was on: a key was made under the empty home. assert "Created a local encryption key" in output assert (fresh_machine / ".openadapt" / "keys").is_dir() sealed = sorted(p.parent for p in root.rglob(sealed_set.HEADER)) names = {p.name for p in sealed} - assert {"recording", "bundle", "run-1", "run-broken"} <= names, names + # Act 3 (#2840): note 1 before the hard stop, then both notes after it. + act3 = {"note-1", "note-1-restart", "note-2-restart"} + assert {"recording", "bundle", "run-1"} | act3 <= names, names for folder in sealed: assert _unindexed(folder) == [], folder