Skip to content

Commit

Permalink
test: check that servers exist before coercing them into an array
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Oct 15, 2019
1 parent 7df03cb commit 6eb2e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runner/plugins/client_leak_checker.js
Expand Up @@ -21,7 +21,7 @@ TestConfiguration.prototype.newClient = function() {

function unifiedTopologyIsConnected(client) {
const topology = client.topology;
if (topology == null) {
if (topology == null || topology.s.servers == null) {
return false;
}

Expand Down

0 comments on commit 6eb2e16

Please sign in to comment.