mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Add NO_EXTERNAL_TEST flag to skip tests using external APIs
Adds an externalTest(this) helper alongside slowTest that skips the test when NO_EXTERNAL_TEST is set and raises the timeout to 60s, plus a no-external-test script. Marks the tests hitting factorio.com, the mod portal and GitHub with it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0be4fd77e5
commit
0cfa048d42
8 files changed
+34
-6
No files matched your search
@@ -7,7 +7,7 @@ const { ModDependencyResolveRequest, ModDependency, ModInfo } = lib;
|
||||
const { testMatrix, testRoundTripJsonSerialisable } = require("../common");
|
||||
|
||||
const { Controller, ControlConnection } = require("@clusterio/controller");
|
||||
const { slowTest } = require("../integration");
|
||||
const { externalTest } = require("../integration");
|
||||
|
||||
describe("messages/mod", function() {
|
||||
/** @type {Controller} */
|
||||
@@ -467,7 +467,7 @@ describe("messages/mod", function() {
|
||||
}
|
||||
});
|
||||
it("resolves dependencies (live)", async function() {
|
||||
this.timeout(60000); // Increase timeout to 60 seconds for live API call
|
||||
externalTest(this);
|
||||
lib.ModStore.fetchModReleases = _ModStore_fetchModReleases;
|
||||
|
||||
const result = await controlConnection.handleModDependencyResolveRequest(
|
||||
|
||||
Reference in new issue
Block a user