Bumping versions
This commit is contained in:
@@ -28,8 +28,9 @@ import org.springframework.core.env.Environment;
|
||||
/**
|
||||
* An implementation of {@link ServiceInstanceListSupplier} that filters instances
|
||||
* retrieved by the delegate by zone. The zone is retrieved from the
|
||||
* <code>spring.cloud.loadbalancer.zone</code> property. If the zone is not set or no instances are found for the
|
||||
* requested zone, all instances retrieved by the delegate are returned.
|
||||
* <code>spring.cloud.loadbalancer.zone</code> property. If the zone is not set or no
|
||||
* instances are found for the requested zone, all instances retrieved by the delegate are
|
||||
* returned.
|
||||
*
|
||||
* @author Olga Maciaszek-Sharma
|
||||
* @since 2.2.1
|
||||
|
||||
@@ -65,7 +65,8 @@ class ZonePreferenceServiceInstanceListSupplierTests {
|
||||
void shouldFilterInstancesByZone() {
|
||||
when(environment.getProperty("spring.cloud.loadbalancer.zone"))
|
||||
.thenReturn("zone1");
|
||||
when(delegate.get()).thenReturn(Flux.just(Arrays.asList(first, second, third, fourth, fifth)));
|
||||
when(delegate.get()).thenReturn(
|
||||
Flux.just(Arrays.asList(first, second, third, fourth, fifth)));
|
||||
|
||||
List<ServiceInstance> filtered = supplier.get().blockFirst();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user