test: fixup autoupdater tests failures (#51060)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <kleinschmidtorama@gmail.com>
This commit is contained in:
trop[bot]
2026-04-15 10:06:14 -04:00
committed by GitHub
parent bdd027249a
commit fda8705b4a
2 changed files with 5 additions and 3 deletions

View File

@@ -350,7 +350,8 @@ ifdescribe(shouldRunCodesignTests)('autoUpdater behavior', function () {
});
});
it('should hit the download endpoint when an update is available and update successfully when the zip is provided even after a different update was staged', async () => {
it('should hit the download endpoint when an update is available and update successfully when the zip is provided even after a different update was staged', async function () {
this.timeout(180000);
await withUpdatableApp({
nextVersion: '2.0.0',
startFixture: 'update-stack',
@@ -478,7 +479,8 @@ ifdescribe(shouldRunCodesignTests)('autoUpdater behavior', function () {
});
});
it('should keep the update directory count bounded across repeated checks', async () => {
it('should keep the update directory count bounded across repeated checks', async function () {
this.timeout(240000);
// Verifies the orphan prune actually fires: after a second download
// completes and rewrites ShipItState.plist, the first directory is no
// longer referenced and must be removed when a third check begins.

View File

@@ -46,7 +46,7 @@ if (feedUrl === 'remain-open') {
} else {
setTimeout(() => {
autoUpdater.checkForUpdates();
}, 1000);
}, 5000);
}
});