Skip to content

Commit 9bd82b9

Browse files
committed
Fix embedded test case for multiple hosts
1 parent 0cb750c commit 9bd82b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-embedded/src/main/com/mongodb/embedded/client/MongoClientSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public Builder applyConnectionString(final ConnectionString connectionString) {
120120
connectionString.getHosts().get(0)));
121121
}
122122
} else {
123-
throw new MongoClientException(format("Connection String contains invalid hosts: %s", connectionString.getHosts()));
123+
throw new MongoClientEmbeddedException(format("Connection String contains invalid hosts: %s", connectionString.getHosts()));
124124
}
125125
return this;
126126
}

0 commit comments

Comments
 (0)