mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 06:09:53 +05:00
Updated dispatcher tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
cefbdab382
commit
99bcf7b94e
@@ -160,9 +160,12 @@ func testDspDspv1GetProfileForEvent(t *testing.T) {
|
||||
},
|
||||
},
|
||||
}
|
||||
expected.Hosts.Sort()
|
||||
if err := dspRPC.Call(utils.DispatcherSv1GetProfileForEvent, &arg, &reply); err != nil {
|
||||
t.Error(err)
|
||||
} else if !reflect.DeepEqual(expected, reply) {
|
||||
}
|
||||
reply.Hosts.Sort()
|
||||
if !reflect.DeepEqual(expected, reply) {
|
||||
t.Errorf("expected: %s , received: %s", utils.ToJSON(expected), utils.ToJSON(reply))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user