Work on LDAP tests

This commit is contained in:
Max Leiter 2022-05-31 22:37:16 -07:00
parent 5b4166ff30
commit cb0c6222cf
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA
2 changed files with 2 additions and 5 deletions

View file

@ -3,6 +3,6 @@
"host": "irc.example.com", "host": "irc.example.com",
"port": 7000, "port": 7000,
"duration": 3600, "duration": 3600,
"expires": 1654050976399 "expires": 1654061648263
} }
] ]

View file

@ -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();
}); });