mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
Move slowTest into test/integration/index
Deduplicate slowTest into the shared integration test library.
This commit is contained in:
1 parent
43ce6aa58c
commit
8de3f54bc4
4 files changed
+16
-29
No files matched your search
@@ -6,6 +6,8 @@ const path = require("path");
|
||||
const factorio = require("lib/factorio");
|
||||
const errors = require("lib/errors");
|
||||
|
||||
const { slowTest } = require("./index");
|
||||
|
||||
|
||||
describe("Integration of lib/factorio/server", function() {
|
||||
describe("_getVersion()", function() {
|
||||
@@ -67,16 +69,6 @@ describe("Integration of lib/factorio/server", function() {
|
||||
});
|
||||
});
|
||||
|
||||
// Mark that this test takes a lot of time, or depeneds on a test
|
||||
// that takes a lot of time.
|
||||
function slowTest(test) {
|
||||
if (process.env.FAST_TEST) {
|
||||
test.skip();
|
||||
}
|
||||
|
||||
test.timeout(20000);
|
||||
}
|
||||
|
||||
function log(message) {
|
||||
logFile.write("=================== " + message + "\n");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user