Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/lib/actions/sandbox/rebuild-dcode-recovery.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ describe("rebuildSandbox DCode flow: recovery", () => {

await expect(
harness.rebuildSandbox("alpha", ["--yes"], { throwOnError: true }),
).rejects.toThrow("Rebuild completed with unverified live policy reconciliation for 'alpha'.");
).rejects.toThrow("POLICY_RECONCILIATION_UNVERIFIED");

expect(harness.registryUpdateSpy).toHaveBeenCalledWith(
"alpha",
Expand All @@ -376,6 +376,11 @@ describe("rebuildSandbox DCode flow: recovery", () => {
policyPresetsFinalized: undefined,
}),
);
expect(harness.transactionStore.load("alpha")).toMatchObject({
status: "active",
phase: "replacement_created",
failure: { code: "POLICY_RECONCILIATION_UNVERIFIED", retryable: true },
});
expect(harness.relockSpy).toHaveBeenCalled();
});

Expand Down
187 changes: 0 additions & 187 deletions src/lib/actions/sandbox/rebuild-finalization.test.ts

This file was deleted.

168 changes: 0 additions & 168 deletions src/lib/actions/sandbox/rebuild-finalization.ts

This file was deleted.

Loading
Loading