mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 22:29:55 +05:00
Disp test
This commit is contained in:
@@ -840,7 +840,7 @@ func TestLibDispatcherSingleResultDispatcherCase3(t *testing.T) {
|
||||
Tenant: "testTenant",
|
||||
RemoteHost: &config.RemoteHost{
|
||||
ID: "testID",
|
||||
Address: rpcclient.InternalRPC,
|
||||
Address: "",
|
||||
Transport: utils.MetaInternal,
|
||||
TLS: false,
|
||||
},
|
||||
@@ -851,7 +851,7 @@ func TestLibDispatcherSingleResultDispatcherCase3(t *testing.T) {
|
||||
value, nil, true, utils.NonTransactional)
|
||||
wgDsp := &singleResultDispatcher{sorter: new(noSort), hosts: engine.DispatcherHostProfiles{{ID: "testID"}}}
|
||||
err := wgDsp.Dispatch(dm, nil, cfg, context.Background(), chanRPC, nil, "testTenant", "routeID", &DispatcherRoute{}, utils.AttributeSv1Ping, &utils.CGREvent{}, &wgDsp)
|
||||
expected := "DISCONNECTED"
|
||||
expected := "INTERNALLY_DISCONNECTED"
|
||||
if err == nil || err.Error() != expected {
|
||||
t.Errorf("\nExpected <%+v>, \nReceived <%+v>", expected, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user