Wrr loadbalancer honors old weight on recovered servers
This commit is contained in:
parent
9299c3abc7
commit
ffd8e5667c
2 changed files with 25 additions and 10 deletions
|
@ -115,7 +115,7 @@ func TestSetBackendsConfiguration(t *testing.T) {
|
|||
if test.startHealthy {
|
||||
lb.servers = append(lb.servers, serverURL)
|
||||
} else {
|
||||
backend.disabledURLs = append(backend.disabledURLs, serverURL)
|
||||
backend.disabledURLs = append(backend.disabledURLs, backendURL{url: serverURL, weight: 1})
|
||||
}
|
||||
|
||||
collectingMetrics := testhelpers.NewCollectingHealthCheckMetrics()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue