chore: remove app.allowRendererProcessReuse (#26874)
This commit is contained in:
parent
4ca518468d
commit
79077f6df9
16 changed files with 43 additions and 392 deletions
|
@ -1661,26 +1661,6 @@ describe('default behavior', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('app.allowRendererProcessReuse', () => {
|
||||
it('should default to true', () => {
|
||||
expect(app.allowRendererProcessReuse).to.equal(true);
|
||||
});
|
||||
|
||||
it('should cause renderer processes to get new PIDs when false', async () => {
|
||||
const output = await runTestApp('site-instance-overrides', 'false');
|
||||
expect(output[0]).to.be.a('number').that.is.greaterThan(0);
|
||||
expect(output[1]).to.be.a('number').that.is.greaterThan(0);
|
||||
expect(output[0]).to.not.equal(output[1]);
|
||||
});
|
||||
|
||||
it('should cause renderer processes to keep the same PID when true', async () => {
|
||||
const output = await runTestApp('site-instance-overrides', 'true');
|
||||
expect(output[0]).to.be.a('number').that.is.greaterThan(0);
|
||||
expect(output[1]).to.be.a('number').that.is.greaterThan(0);
|
||||
expect(output[0]).to.equal(output[1]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('login event', () => {
|
||||
afterEach(closeAllWindows);
|
||||
let server: http.Server;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue