Stop repeating cancelled scheduled Fetch

This commit is contained in:
vorotamoroz
2026-08-08 04:29:57 +00:00
parent b05309ad9c
commit d37af53858
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ export function createFetchAllFlagHandler(
// Select the remote database if there are multiple remotes configured.
const isRemoteActivated = await askAndActivateRemoteDatabase(host, log);
if (!isRemoteActivated) {
return false;
return await cancelScheduledInitialisation(host, cleanupFlag);
}
// Ask user for use Fast Setup
+10
View File
@@ -581,6 +581,16 @@ describe("Red Flag Feature", () => {
expect(result).toBe(false);
expect(host.mocks.ui.confirm.confirmWithMessage).not.toHaveBeenCalled();
expect(host.mocks.storageAccess.files.has(FlagFilesOriginal.FETCH_ALL)).toBe(false);
await expect(handler.check()).resolves.toBe(false);
expect(host.mocks.setting.applyPartial).toHaveBeenCalledWith(
{
suspendFileWatching: true,
suspendParseReplicationResult: true,
},
true
);
expect(host.mocks.appLifecycle.performRestart).toHaveBeenCalledOnce();
});
it("should activate selected remote configuration", async () => {