Skip to content

Commit 7dc7cb8

Browse files
committed
test: support only passing options to configuration.newTopology
1 parent 5f6a787 commit 7dc7cb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/runner/config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ class NativeConfiguration {
9696
}
9797

9898
newTopology(host, port, options) {
99+
if (typeof host === 'object') {
100+
options = host;
101+
host = null;
102+
port = null;
103+
}
104+
99105
options = Object.assign({}, options);
100106
const hosts = host == null ? [].concat(this.options.hosts) : [{ host, port }];
101107
if (this.usingUnifiedTopology()) {

0 commit comments

Comments
 (0)