Skip to content

Commit 4fe0911

Browse files
committed
add additional connection expectations in test
1 parent c5e0309 commit 4fe0911

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/connection.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,11 @@ describe('Connection', function () {
287287

288288
client.close(err => {
289289
expect(err).to.not.exist;
290+
expect(client.isConnected()).to.be.false;
290291

291292
client.connect(err => {
292293
expect(err).to.not.exist;
294+
expect(client.isConnected()).to.be.true;
293295

294296
collection().insertOne({ b: 2 }, (err, result) => {
295297
expect(err).to.not.exist;

0 commit comments

Comments
 (0)