refactor: Convert ProcessSingleton changes to patch (#30594)
* Convert ProcessSingleton changes to patch * Update patch * Polish * Add sandbox check to patch * Add missing includes * Fix linking error * Fix compile error * Apply PR feedback * Fix compile fails * Fix tests * Remove extra patch * Update test
This commit is contained in:
parent
b8372f20a0
commit
e6f781f403
13 changed files with 349 additions and 1621 deletions
|
@ -240,11 +240,12 @@ describe('app module', () => {
|
|||
expect(code1).to.equal(0);
|
||||
const data2 = (await data2Promise)[0].toString('ascii');
|
||||
const secondInstanceArgsReceived: string[] = JSON.parse(data2.toString('ascii'));
|
||||
const expected = process.platform === 'win32'
|
||||
? [process.execPath, '--some-switch', '--allow-file-access-from-files', appPath, 'some-arg']
|
||||
: secondInstanceArgs;
|
||||
expect(secondInstanceArgsReceived).to.eql(expected,
|
||||
`expected ${JSON.stringify(expected)} but got ${data2.toString('ascii')}`);
|
||||
|
||||
// Ensure secondInstanceArgs is a subset of secondInstanceArgsReceived
|
||||
for (const arg of secondInstanceArgs) {
|
||||
expect(secondInstanceArgsReceived).to.include(arg,
|
||||
`argument ${arg} is missing from received second args`);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue