Skip to content

Commit 3e1c947

Browse files
committed
Fix test failures
1 parent e293d44 commit 3e1c947

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/v1/internal/routing-util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class RoutingUtil {
5050
if (error.code === PROCEDURE_NOT_FOUND_CODE) {
5151
// throw when getServers procedure not found because this is clearly a configuration issue
5252
throw newError(
53-
`Server at ${routerAddress} can't perform routing. Make sure you are connecting to a causal cluster`,
53+
`Server at ${routerAddress.asHostPort()} can't perform routing. Make sure you are connecting to a causal cluster`,
5454
SERVICE_UNAVAILABLE);
5555
} else {
5656
// return nothing when failed to connect because code higher in the callstack is still able to retry with a

test/internal/connection-providers.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,9 @@ describe('LoadBalancer', () => {
957957
'server02:7687': updatedRoutingTable
958958
}
959959
);
960+
// override default use of seed router
961+
loadBalancer._useSeedRouter = false;
962+
960963
const usedRouterArrays = [];
961964
setupLoadBalancerToRememberRouters(loadBalancer, usedRouterArrays);
962965

@@ -1057,6 +1060,8 @@ describe('LoadBalancer', () => {
10571060
'server02:7687': routingTable2
10581061
}
10591062
);
1063+
// override default use of seed router
1064+
loadBalancer._useSeedRouter = false;
10601065

10611066
loadBalancer.acquireConnection(READ).then(connection1 => {
10621067
expect(connection1.address).toEqual(serverC);

0 commit comments

Comments
 (0)