mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-19 14:17:20 +02:00
fix: handle production source failures and reduce ZIP work
This commit is contained in:
1 parent
bd7d6f0bef
commit
705f7c428a
16 files changed
+612
-86
No files matched your search
@@ -72,6 +72,7 @@ describe("production failure fixes", function () {
|
||||
now = 30; expect(cache.get("b")).to.equal(undefined); expect(cache.get("c")).to.equal(undefined);
|
||||
});
|
||||
it("caches confirmed file misses by credential and commit, without caching permission failures", async () => {
|
||||
stub(require("../src/core/source/github-content-miss"), "classifyContentMiss", async () => "file_not_found");
|
||||
let token = "credential-a", attempts = 0, now = Date.now();
|
||||
stub(Date, "now", () => now);
|
||||
stub(storage, "fileInfo", async () => { throw Object.assign(Error("missing"), { code: "ENOENT" }); });
|
||||
|
||||
Reference in new issue
Block a user