Merge pull request #1761 from thelounge/astorije/slow-tests

Mark slow tests as such to reduce noise on test report
This commit is contained in:
Pavel Djundik 2017-11-28 11:43:24 +02:00 committed by GitHub
commit c9e340e153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {