mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +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
@@ -9,6 +9,16 @@ const events = require("events");
|
||||
const server = require("lib/factorio/server");
|
||||
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
||||
async function get(path) {
|
||||
let res = await needle("get", `https://localhost:4443${path}`, { rejectUnauthorized: false });
|
||||
if (res.statusCode != 200) {
|
||||
@@ -97,6 +107,7 @@ after(async function() {
|
||||
|
||||
|
||||
module.exports = {
|
||||
slowTest,
|
||||
get,
|
||||
exec,
|
||||
|
||||
|
||||
Reference in new issue
Block a user