mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-10 01:32:17 +02:00
Work on LDAP tests
This commit is contained in:
parent
5b4166ff30
commit
cb0c6222cf
2
test/fixtures/.thelounge/sts-policies.json
vendored
2
test/fixtures/.thelounge/sts-policies.json
vendored
|
@ -3,6 +3,6 @@
|
||||||
"host": "irc.example.com",
|
"host": "irc.example.com",
|
||||||
"port": 7000,
|
"port": 7000,
|
||||||
"duration": 3600,
|
"duration": 3600,
|
||||||
"expires": 1654050976399
|
"expires": 1654061648263
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -136,11 +136,9 @@ describe("LDAP authentication plugin", function () {
|
||||||
this.slow(300);
|
this.slow(300);
|
||||||
|
|
||||||
let server: ldap.Server;
|
let server: ldap.Server;
|
||||||
let infoLogStub: any;
|
|
||||||
|
|
||||||
before(function (done) {
|
before(function (done) {
|
||||||
infoLogStub = sinon.stub(log, "info");
|
sinon.stub(log, "info");
|
||||||
|
|
||||||
server = startLdapServer(done);
|
server = startLdapServer(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -148,7 +146,6 @@ describe("LDAP authentication plugin", function () {
|
||||||
server.close(() => {
|
server.close(() => {
|
||||||
// no-op
|
// no-op
|
||||||
});
|
});
|
||||||
|
|
||||||
sinon.restore();
|
sinon.restore();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue