Skip to content

Commit 380e0ee

Browse files
committed
test: newTopology should use all hosts from a connection string
If no host or port is provided, then `newTopology` should use all hosts provided in a connection string.
1 parent 6b5243f commit 380e0ee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/runner/config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ class NativeConfiguration {
9797

9898
newTopology(host, port, options) {
9999
options = Object.assign({}, options);
100-
host = host || this.options.host;
101-
port = port || this.options.port;
102-
103100
const hosts = host == null ? [].concat(this.options.hosts) : [{ host, port }];
104101
if (this.usingUnifiedTopology()) {
105102
return new core.Topology(hosts, options);

0 commit comments

Comments
 (0)