mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 22:58:44 +05:00
Repair dispatcher opts tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
9dc0133207
commit
9f9e73ca45
@@ -84,7 +84,7 @@ func TestCMgetConnUnsupportedBiRPC(t *testing.T) {
|
||||
}
|
||||
|
||||
experr := rpcclient.ErrUnsupportedBiRPC
|
||||
exp, err := NewRPCPool(context.Background(), "*first", "", "", "", cfg.GeneralCfg().ConnectAttempts,
|
||||
exp, err := NewRPCPool(context.Background(), utils.MetaFirst, "", "", "", cfg.GeneralCfg().ConnectAttempts,
|
||||
cfg.GeneralCfg().Reconnects, cfg.GeneralCfg().MaxReconnectInterval, cfg.GeneralCfg().ConnectTimeout,
|
||||
cfg.GeneralCfg().ReplyTimeout, nil, cc, true, nil, "", cM.connCache)
|
||||
if err != nil {
|
||||
@@ -129,7 +129,7 @@ func TestCMgetConnNotInternalRPC(t *testing.T) {
|
||||
|
||||
cM.connCache.Set(connID, nil, nil)
|
||||
|
||||
exp, err := NewRPCPool(context.Background(), "*first", cfg.TLSCfg().ClientKey, cfg.TLSCfg().ClientCerificate,
|
||||
exp, err := NewRPCPool(context.Background(), utils.MetaFirst, cfg.TLSCfg().ClientKey, cfg.TLSCfg().ClientCerificate,
|
||||
cfg.TLSCfg().CaCertificate, cfg.GeneralCfg().ConnectAttempts,
|
||||
cfg.GeneralCfg().Reconnects, cfg.GeneralCfg().MaxReconnectInterval,
|
||||
cfg.GeneralCfg().ConnectTimeout, cfg.GeneralCfg().ReplyTimeout,
|
||||
|
||||
@@ -458,7 +458,7 @@ func TestLoadDispatcherProfiles(t *testing.T) {
|
||||
Tenant: "cgrates.org",
|
||||
ID: "D1",
|
||||
FilterIDs: []string{"*string:~*req.Account:1001"},
|
||||
Strategy: "*first",
|
||||
Strategy: utils.MetaFirst,
|
||||
Weight: 20,
|
||||
Hosts: []*utils.TPDispatcherHostProfile{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user