test: exit after app.relaunch is called (#28016)
This commit is contained in:
parent
f114dcfd6e
commit
b3a0743121
3 changed files with 10 additions and 9 deletions
7
spec/fixtures/api/relaunch/main.js
vendored
7
spec/fixtures/api/relaunch/main.js
vendored
|
@ -14,10 +14,9 @@ app.whenReady().then(() => {
|
|||
client.end(String(lastArg === '--second'));
|
||||
});
|
||||
client.once('end', () => {
|
||||
if (lastArg !== '--second') {
|
||||
app.relaunch({ args: process.argv.slice(1).concat('--second') });
|
||||
}
|
||||
app.exit(0);
|
||||
});
|
||||
|
||||
if (lastArg !== '--second') {
|
||||
app.relaunch({ args: process.argv.slice(1).concat('--second') });
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue