Clear stale Chromium profile locks on startup
This commit is contained in:
1 parent
364b4db200
commit
dcf2a1200c
2 files changed
+19
No files matched your search
@@ -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'));
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user