Response to comments

- Increase timeout on download test
- Fix wrong function being called
This commit is contained in:
Cooldude2606 committed 2026-02-08 21:44:04 +00:00
1 parent 098aceaf10
commit 0a5d0c374b
1 file changed
+2 -1
+2 -1
View File
@@ -132,6 +132,7 @@ describe("host/server", function() {
});
it("works", async function() {
slowTest(this);
const url = "https://github.com/clusterio/clusterio/archive/refs/tags/v2.0.0-alpha.22.zip";
const downloads = path.join("temp", "test", "downloads");
await fs.emptyDir(downloads);
@@ -162,7 +163,7 @@ describe("host/server", function() {
});
it("errors and bad status", async function() {
global.fetch = () => ({ ok: false, status: -1, statusText: "Fetch called" });
await assert.rejects(hostServer._downloadAndExtractZip("url does not matter"), /-1 Fetch called/);
await assert.rejects(hostServer._downloadAndExtractTar("url does not matter"), /-1 Fetch called/);
});
});