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:
commit
c9e340e153
@ -109,6 +109,8 @@ function testLdapAuth() {
|
||||
}
|
||||
|
||||
describe("LDAP authentication plugin", function() {
|
||||
this.slow(200);
|
||||
|
||||
before((done) => {
|
||||
this.server = startLdapServer(done);
|
||||
});
|
||||
|
@ -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) {
|
||||
|
@ -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`;
|
||||
|
@ -41,7 +41,9 @@ describe("Server", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("WebSockets", () => {
|
||||
describe("WebSockets", function() {
|
||||
this.slow(300);
|
||||
|
||||
let client;
|
||||
|
||||
before((done) => {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user