fix weight lb ut (#705)

pull/708/head
lepdou 3 years ago committed by lepdou
parent 99ccfe2b42
commit d379310df5

@ -80,6 +80,7 @@ public class PolarisLoadBalancerTest {
//mock routerAPI for rule
when(routerAPI.processLoadBalance(any())).thenReturn(assembleProcessLoadBalanceResp());
PolarisWeightedRule rule = new PolarisWeightedRule(routerAPI);
rule.initWithNiwsConfig(new DefaultClientConfigImpl());
// clientConfig
IClientConfig config = new DefaultClientConfigImpl();
@ -111,6 +112,7 @@ public class PolarisLoadBalancerTest {
//mock routerAPI for rule
when(routerAPI.processLoadBalance(any())).thenReturn(assembleProcessLoadBalanceResp());
PolarisWeightedRule rule = new PolarisWeightedRule(routerAPI);
rule.initWithNiwsConfig(new DefaultClientConfigImpl());
// clientConfig
IClientConfig config = new DefaultClientConfigImpl();

Loading…
Cancel
Save