mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-18 14:16:36 +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",
|
||||
"port": 7000,
|
||||
"duration": 3600,
|
||||
"expires": 1654050976399
|
||||
"expires": 1654061648263
|
||||
}
|
||||
]
|
||||
|
|
|
@ -136,11 +136,9 @@ describe("LDAP authentication plugin", function () {
|
|||
this.slow(300);
|
||||
|
||||
let server: ldap.Server;
|
||||
let infoLogStub: any;
|
||||
|
||||
before(function (done) {
|
||||
infoLogStub = sinon.stub(log, "info");
|
||||
|
||||
sinon.stub(log, "info");
|
||||
server = startLdapServer(done);
|
||||
});
|
||||
|
||||
|
@ -148,7 +146,6 @@ describe("LDAP authentication plugin", function () {
|
|||
server.close(() => {
|
||||
// no-op
|
||||
});
|
||||
|
||||
sinon.restore();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue