Added *default_ratio for dispatchers with load strategy

This commit is contained in:
Trial97
2020-08-18 17:09:27 +03:00
committed by Dan Christian Bogos
parent cb21fb0bc3
commit 536b4fa5b2
6 changed files with 112 additions and 26 deletions

View File

@@ -279,9 +279,7 @@ func TestDispatcherHostIDsProfilesReorderFromIndex(t *testing.T) {
func TestDispatcherHostIDsProfilesShuffle(t *testing.T) {
dConns := DispatcherHostIDs{"DSP_1", "DSP_2", "DSP_3", "DSP_4"}
oConns := DispatcherHostIDs{"DSP_1", "DSP_2", "DSP_3", "DSP_4"}
if dConns.Shuffle(); dConns[0] == oConns[0] ||
dConns[1] == oConns[1] || dConns[2] == oConns[2] ||
dConns[3] == oConns[3] {
if dConns.Shuffle(); reflect.DeepEqual(dConns, oConns) {
t.Errorf("received: %s", utils.ToJSON(dConns))
}
}