Disp test

This commit is contained in:
adi
2022-09-23 16:18:39 +03:00
committed by Dan Christian Bogos
parent 1ac4572f2e
commit b0df924f1c

View File

@@ -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)
}