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() {
this.slow(200);
before((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");
describe("Link plugin", function() {
this.slow(200);
before(function(done) {
this.app = util.createWebserver();
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");
describe("Image storage", function() {
this.slow(200);
const testImagePath = path.resolve(__dirname, "../../client/img/apple-touch-icon-120x120.png");
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`;

View file

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

View file

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