Skip to content

Commit

Permalink
test: must continue to use common destroy method
Browse files Browse the repository at this point in the history
Until the legacy topologies are removed, we must continue to use
the legacy `destroy` method on them.
  • Loading branch information
mbroadst committed Dec 30, 2019
1 parent 9dd3939 commit 33a56cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/functional/core/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ describe('Server tests', function() {
err = e;
}

client.close(err2 => done(err || err2));
client.destroy(err2 => done(err || err2));
});

client.on('connect', () => {
Expand Down
11 changes: 5 additions & 6 deletions test/functional/core/single_mocks/compression.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Single Compression (mocks)', function() {
});

client.on('connect', function() {
client.close(done);
client.destroy(done);
});

client.connect();
Expand Down Expand Up @@ -126,7 +126,7 @@ describe('Single Compression (mocks)', function() {
expect(___err).to.be.null;
expect(___r.result.ok).to.equal(1);

client.close(done);
client.destroy(done);
});
});
});
Expand Down Expand Up @@ -220,7 +220,7 @@ describe('Single Compression (mocks)', function() {
expect(___err).to.be.null;
expect(___r.result.ok).to.equal(1);

client.close(done);
client.destroy(done);
});
});
});
Expand Down Expand Up @@ -316,8 +316,7 @@ describe('Single Compression (mocks)', function() {
expect(___err).to.be.null;
expect(___r.result.ok).to.equal(1);

client.close();
done();
client.destroy(done);
});
});
});
Expand Down Expand Up @@ -407,7 +406,7 @@ describe('Single Compression (mocks)', function() {
expect(___err).to.be.null;
expect(___r.result.ok).to.equal(1);

client.close(done);
client.destroy(done);
});
});
});
Expand Down
3 changes: 2 additions & 1 deletion test/functional/mongo_client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ describe('MongoClient', function() {
it('Should correctly set MaxPoolSize on sharded server', {
metadata: {
requires: {
topology: ['sharded']
topology: ['sharded'],
unifiedTopology: false
}
},

Expand Down

0 comments on commit 33a56cf

Please sign in to comment.