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