Increase test timeout due to unpredictable I/O on CI services

This commit is contained in:
Pavel Djundik 2019-11-27 20:25:29 +02:00
parent 446f99f62a
commit 8b7fb33627
5 changed files with 10 additions and 1 deletions

View File

@ -124,6 +124,8 @@ function testLdapAuth() {
}
describe("LDAP authentication plugin", function() {
// Increase timeout due to unpredictable I/O on CI services
this.timeout(process.env.CI ? 25000 : 5000);
this.slow(200);
let server;

View File

@ -7,6 +7,8 @@ const Helper = require("../../src/helper");
const link = require("../../src/plugins/irc-events/link.js");
describe("Link plugin", function() {
// Increase timeout due to unpredictable I/O on CI services
this.timeout(process.env.CI ? 25000 : 5000);
this.slow(200);
let app;

View File

@ -8,6 +8,9 @@ const Helper = require("../../src/helper");
const MessageStorage = require("../../src/plugins/messageStorage/sqlite.js");
describe("SQLite Message Storage", function() {
// Increase timeout due to unpredictable I/O on CI services
this.timeout(process.env.CI ? 25000 : 5000);
const expectedPath = path.join(Helper.getHomePath(), "logs", "testUser.sqlite3");
let store;

View File

@ -9,6 +9,8 @@ const Helper = require("../../src/helper");
const link = require("../../src/plugins/irc-events/link.js");
describe("Image storage", function() {
// Increase timeout due to unpredictable I/O on CI services
this.timeout(process.env.CI ? 25000 : 5000);
this.slow(200);
const testImagePath = path.resolve(__dirname, "../../client/img/logo-grey-bg-120x120px.png");

View File

@ -7,7 +7,7 @@ const got = require("got");
const io = require("socket.io-client");
describe("Server", function() {
// Travis is having issues with slow workers and thus tests timeout
// Increase timeout due to unpredictable I/O on CI services
this.timeout(process.env.CI ? 25000 : 5000);
let server;