Skip to content

Commit

Permalink
fix(NODE-3351): make test async function
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Feb 7, 2022
1 parent f79eae0 commit d52df19
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/manual/kerberos.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@ describe('Kerberos', function () {
});
});

it('validate that CANONICALIZE_HOST_NAME can be passed in', function (done) {
it('validate that CANONICALIZE_HOST_NAME can be passed in', async function () {
const client = new MongoClient(
`${krb5Uri}&authMechanismProperties=SERVICE_NAME:mongodb,CANONICALIZE_HOST_NAME:true&maxPoolSize=1`
);
client.connect(function (err, client) {
expect(err).to.not.exist;
verifyKerberosAuthentication(client, done);
await client.connect();
verifyKerberosAuthentication(client, done);
});
});

Expand Down

0 comments on commit d52df19

Please sign in to comment.