Clear stale Chromium profile locks on startup

This commit is contained in:
jjbrunton committed 2026-08-08 15:22:20 +01:00
1 parent 364b4db200
commit dcf2a1200c
2 files changed
+19

No files matched your search

+9
View File
@@ -13,4 +13,13 @@ describe('VNC container entrypoint', () => {
script.indexOf('starting noVNC'),
);
});
it('removes only stale Chromium singleton artifacts before launching the bot', () => {
const script = fs.readFileSync(path.resolve('docker/entrypoint.sh'), 'utf8');
expect(script).toContain('"${BROWSER_SESSION_DIR}/SingletonLock"');
expect(script).toContain('"${BROWSER_SESSION_DIR}/SingletonSocket"');
expect(script).toContain('"${BROWSER_SESSION_DIR}/SingletonCookie"');
expect(script.indexOf('SingletonLock')).toBeLessThan(script.indexOf('launching bot'));
});
});