Browse Source

Fixing broken test

pull/537/head
Ryan Baxter 6 years ago
parent
commit
3a45b85287
  1. 2
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/LoadBalancerClientFilterTests.java

2
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/filter/LoadBalancerClientFilterTests.java

@ -245,7 +245,7 @@ public class LoadBalancerClientFilterTests { @@ -245,7 +245,7 @@ public class LoadBalancerClientFilterTests {
public ServiceInstance choose(String serviceId) {
String[] strings = serviceId.split("<<>>");
loadBalancerKey = strings[1];
return super.choose(strings[0]);
return super.choose(strings[0], loadBalancerKey);
}
protected Server getServer(ILoadBalancer loadBalancer) {
return loadBalancer == null ? null : loadBalancer.chooseServer(StringUtils.isEmpty(loadBalancerKey) ? "default" : loadBalancerKey);

Loading…
Cancel
Save