Optimize proxy scheduler throughput and fairness
This commit is contained in:
@@ -568,7 +568,7 @@ describe("settings storage", () => {
|
||||
expect(backup).not.toContain(value);
|
||||
});
|
||||
|
||||
it("normalizes invalid enum and numeric values", () => {
|
||||
it("normalizes invalid enum and numeric values", () => {
|
||||
const normalized = normalizeSettings({
|
||||
...defaultSettings(),
|
||||
providerPrimary: "invalid-provider" as unknown as AppSettings["providerPrimary"],
|
||||
@@ -610,10 +610,14 @@ describe("settings storage", () => {
|
||||
expect(normalized.outputDir).toBe(defaultSettings().outputDir);
|
||||
expect(normalized.extractDir).toBe(defaultSettings().extractDir);
|
||||
expect(normalized.mkvLibraryDir).toBe(defaultSettings().mkvLibraryDir);
|
||||
expect(normalized.updateRepo).toBe(defaultSettings().updateRepo);
|
||||
});
|
||||
|
||||
it("migrates the previous private update repository to the public release repository", () => {
|
||||
expect(normalized.updateRepo).toBe(defaultSettings().updateRepo);
|
||||
});
|
||||
|
||||
it("uses 20 total proxy connections as the default for new settings", () => {
|
||||
expect(defaultSettings().proxyConnectionsPerDownload).toBe(20);
|
||||
});
|
||||
|
||||
it("migrates the previous private update repository to the public release repository", () => {
|
||||
for (const updateRepo of [
|
||||
"legacy-owner/real-debrid-downloader",
|
||||
"legacy-owner/multi-debrid-downloader",
|
||||
|
||||
Reference in New Issue
Block a user