Skip to content

Commit 4cab4dc

Browse files
committed
test(web): remove browser ownership fixture runtime home
1 parent 6318647 commit 4cab4dc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/platform-web/src/agent-browser-lifecycle.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,13 +645,13 @@ test('records verified current and retained native roots and stable descendants'
645645
test('browser home roots require executable containment and marker roots require Chrome', async () => {
646646
const stateDir = mkdtempForTestSync('agent-device-web-life-');
647647
const otherStateDir = mkdtempForTestSync('agent-device-web-other-');
648+
const previous = managedInstallPaths(stateDir, '0.27.1');
648649
try {
649650
installFakeManagedAgentBrowser(stateDir);
650651
const status = getManagedAgentBrowserStatus({
651652
stateDir,
652653
host: { env: process.env, cwd: process.cwd() },
653654
});
654-
const previous = managedInstallPaths(stateDir, '0.27.1');
655655
const other = managedInstallPaths(otherStateDir, '0.27.1');
656656
fs.mkdirSync(previous.installDir, { recursive: true });
657657
const otherBinary = nativeBinary(other.installDir);
@@ -711,6 +711,7 @@ test('browser home roots require executable containment and marker roots require
711711
201, 202, 209, 210, 213,
712712
]);
713713
} finally {
714+
fs.rmSync(previous.runtimeHomeDir, { recursive: true, force: true });
714715
fs.rmSync(stateDir, { recursive: true, force: true });
715716
fs.rmSync(otherStateDir, { recursive: true, force: true });
716717
}

0 commit comments

Comments
 (0)