Mark slow tests as such to reduce noise on test report

This commit is contained in:
Jérémie Astori 2017-11-27 18:47:19 -05:00
parent c9da29f2fc
commit 624b3ebc18
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8
5 changed files with 11 additions and 1 deletions

View File

@ -109,6 +109,8 @@ function testLdapAuth() {
} }
describe("LDAP authentication plugin", function() { describe("LDAP authentication plugin", function() {
this.slow(200);
before((done) => { before((done) => {
this.server = startLdapServer(done); this.server = startLdapServer(done);
}); });

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() {
this.slow(200);
before(function(done) { before(function(done) {
this.app = util.createWebserver(); this.app = util.createWebserver();
this.app.get("/real-test-image.png", function(req, res) { this.app.get("/real-test-image.png", function(req, res) {

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() {
this.slow(200);
const testImagePath = path.resolve(__dirname, "../../client/img/apple-touch-icon-120x120.png"); const testImagePath = path.resolve(__dirname, "../../client/img/apple-touch-icon-120x120.png");
const correctImageHash = crypto.createHash("sha256").update(fs.readFileSync(testImagePath)).digest("hex"); const correctImageHash = crypto.createHash("sha256").update(fs.readFileSync(testImagePath)).digest("hex");
const correctImageURL = `storage/${correctImageHash.substring(0, 2)}/${correctImageHash.substring(2, 4)}/${correctImageHash.substring(4)}.png`; const correctImageURL = `storage/${correctImageHash.substring(0, 2)}/${correctImageHash.substring(2, 4)}/${correctImageHash.substring(4)}.png`;

View File

@ -41,7 +41,9 @@ describe("Server", () => {
}); });
}); });
describe("WebSockets", () => { describe("WebSockets", function() {
this.slow(300);
let client; let client;
before((done) => { before((done) => {

View File

@ -4,6 +4,8 @@ const expect = require("chai").expect;
const Helper = require("../../src/helper"); const Helper = require("../../src/helper");
describe("Client passwords", function() { describe("Client passwords", function() {
this.slow(1500);
const inputPassword = "my$Super@Cool Password"; const inputPassword = "my$Super@Cool Password";
it("hashed password should match", function() { it("hashed password should match", function() {