mirror of
https://github.com/spring-cloud/spring-cloud-netflix.git
synced 2026-10-03 18:19:00 +00:00
Fixes broken tests from url cleanup
This commit is contained in:
+3
-3
@@ -85,7 +85,7 @@ public class FeignRibbonClientTests {
|
||||
@Before
|
||||
public void init() {
|
||||
when(this.loadBalancer.chooseServer(any())).thenReturn(
|
||||
new Server("foo.com", 8000));
|
||||
new Server("foo-domain", 8000));
|
||||
//to fix NPE
|
||||
LoadBalancerStats stats = mock(LoadBalancerStats.class);
|
||||
when(this.loadBalancer.getLoadBalancerStats()).thenReturn(stats);
|
||||
@@ -97,7 +97,7 @@ public class FeignRibbonClientTests {
|
||||
Request request = new RequestTemplate().method("GET").append("http://foo/")
|
||||
.request();
|
||||
this.client.execute(request, new Options());
|
||||
RequestMatcher matcher = new RequestMatcher("https://foo.com:8000/");
|
||||
RequestMatcher matcher = new RequestMatcher("http://foo-domain:8000/");
|
||||
verify(this.delegate).execute(argThat(matcher),
|
||||
any(Options.class));
|
||||
}
|
||||
@@ -107,7 +107,7 @@ public class FeignRibbonClientTests {
|
||||
Request request = new RequestTemplate().method("GET").append("https://foo/")
|
||||
.request();
|
||||
this.client.execute(request, new Options());
|
||||
RequestMatcher matcher = new RequestMatcher("https://foo.com:8000/");
|
||||
RequestMatcher matcher = new RequestMatcher("https://foo-domain:8000/");
|
||||
verify(this.delegate).execute(argThat(matcher),
|
||||
any(Options.class));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user