Merge pull request #3538 from thelounge/xpaw/test-timeout

Increase test timeout due to unpredictable I/O on CI services
This commit is contained in:
Pavel Djundik 2019-11-28 12:57:41 +02:00 committed by GitHub
commit 6d342b9847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 1 deletions

View File

@ -124,6 +124,8 @@ function testLdapAuth() {
} }
describe("LDAP authentication plugin", function() { 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); this.slow(200);
let server; let server;

View File

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

View File

@ -8,6 +8,9 @@ const Helper = require("../../src/helper");
const MessageStorage = require("../../src/plugins/messageStorage/sqlite.js"); const MessageStorage = require("../../src/plugins/messageStorage/sqlite.js");
describe("SQLite Message Storage", function() { 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"); const expectedPath = path.join(Helper.getHomePath(), "logs", "testUser.sqlite3");
let store; let store;

View File

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