release: publish v2.0.34 account recovery fixes
Add a manual Mega-Debrid cooldown reset that preserves active downloads while releasing affected queued work. Replace false per-account cooling for ambiguous Mega-Web session failures with one shared session backoff, attribute fallback failures to the provider actually attempted, and accept omitted optional renderer settings during provider changes. Expand regression coverage and stabilize archive integration checks under concurrent validation load.
This commit is contained in:
@@ -14,6 +14,20 @@ vi.mock("electron", () => ({
|
||||
}));
|
||||
|
||||
describe("reset controller boundary", () => {
|
||||
it("delegates the Mega-Debrid cooldown reset and audits the cleared count", () => {
|
||||
const controller = Object.create(AppController.prototype) as {
|
||||
manager: { resetMegaDebridCooldowns: ReturnType<typeof vi.fn> };
|
||||
audit: ReturnType<typeof vi.fn>;
|
||||
resetMegaDebridCooldowns: () => { cleared: number };
|
||||
};
|
||||
controller.manager = { resetMegaDebridCooldowns: vi.fn(() => 3) };
|
||||
controller.audit = vi.fn();
|
||||
|
||||
expect(controller.resetMegaDebridCooldowns()).toEqual({ cleared: 3 });
|
||||
expect(controller.manager.resetMegaDebridCooldowns).toHaveBeenCalledTimes(1);
|
||||
expect(controller.audit).toHaveBeenCalledWith("INFO", "Mega-Debrid-Cooldowns manuell zurückgesetzt", { cleared: 3 });
|
||||
});
|
||||
|
||||
it("audits reset completion only after the manager operation succeeds", async () => {
|
||||
const packagePromise = Promise.resolve();
|
||||
const itemPromise = Promise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user