test(install/macos): give a just-launched historical app longer to Quit
The v2026.7.1 app launched by the latest DMG was still starting its backend and did not finish a normal Quit within 30s. Wait up to 120s; the quit must still be the normal one (no force-kill).
This commit is contained in:
@@ -258,7 +258,10 @@ phase_install() {
|
||||
const app = apps.objectAtIndex(i);
|
||||
if (app.executableURL && ObjC.unwrap(app.executableURL.path) === args[0]) {
|
||||
if (!app.terminate) throw new Error("normal Quit refused");
|
||||
const deadline = Date.now() + 30000;
|
||||
// A historical app (v2026.7.1) that the bootstrap launched moments ago
|
||||
// was seen not to finish quitting within 30s while its backend was
|
||||
// still starting. Allow longer, but the quit must stay the normal one.
|
||||
const deadline = Date.now() + 120000;
|
||||
while (!app.terminated && Date.now() < deadline) delay(0.2);
|
||||
if (!app.terminated) throw new Error("installed app did not quit normally");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user