Mark slow tests as such to reduce noise on test report
This commit is contained in:
parent
c9da29f2fc
commit
624b3ebc18
@ -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);
|
||||||
});
|
});
|
||||||
|
@ -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) {
|
||||||
|
@ -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`;
|
||||||
|
@ -41,7 +41,9 @@ describe("Server", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("WebSockets", () => {
|
describe("WebSockets", function() {
|
||||||
|
this.slow(300);
|
||||||
|
|
||||||
let client;
|
let client;
|
||||||
|
|
||||||
before((done) => {
|
before((done) => {
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user