Revert "fix polarisWeightedRandom"

This reverts commit 5fc718c60e.
pull/966/head
seanyu 2 years ago
parent 5fc718c60e
commit f903fb832f

@ -77,7 +77,7 @@ public class PolarisWeightedRandomLoadBalancerAutoConfigurationTest {
@Test @Test
public void testPolarisWeightedInitialization() { public void testPolarisWeightedInitialization() {
this.contextRunner.withPropertyValues("spring.cloud.polaris.loadbalancer.strategy=polarisWeightedRandom").run(context -> { this.contextRunner.withPropertyValues("spring.cloud.polaris.loadbalancer.strategy=polarisWeighted").run(context -> {
assertThat(context).hasSingleBean(RouterAPI.class); assertThat(context).hasSingleBean(RouterAPI.class);
assertThat(context).hasSingleBean(RestTemplate.class); assertThat(context).hasSingleBean(RestTemplate.class);
assertThatThrownBy(() -> { assertThatThrownBy(() -> {

Loading…
Cancel
Save