mirror of
https://github.com/morluto/rea
synced 2026-10-25 22:08:11 -04:00
test(ghidra): isolate source admission failure sessions
Fixes #3405. Isolate each negative source-admission case with a cold Ghidra session while retaining valid snapshot readback coverage. Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
This commit is contained in:
@@ -146,6 +146,9 @@ async function verifySourceReadFailures({
|
||||
...(permissionDenied ? ["permission"] : []),
|
||||
];
|
||||
for (const scenario of scenarios) {
|
||||
// Same-target reopen may admit restored bytes through retained-client health.
|
||||
// Each rejection needs a cold client, without an existing private snapshot.
|
||||
await call("close_binary");
|
||||
await call("open_binary", { path: source, provider_id: "ghidra" });
|
||||
const before = await call("binary_session");
|
||||
if (scenario === "permission") await chmod(source, 0);
|
||||
|
||||
Reference in New Issue
Block a user