mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Complete tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
5674a18c6b
commit
b537c160f6
@@ -106,7 +106,7 @@ func TestMapEventAsNavigableMap(t *testing.T) {
|
||||
|
||||
func TestMapEventRemoteHost(t *testing.T) {
|
||||
data := config.DataProvider(mapEv)
|
||||
if rply, expected := data.RemoteHost(), new(utils.LocalAddr); !reflect.DeepEqual(expected, rply) {
|
||||
if rply, expected := data.RemoteHost(), utils.LocalAddr(); !reflect.DeepEqual(expected, rply) {
|
||||
t.Errorf("Expecting %+v, received: %+v", expected, rply)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ func TestSafEventAsNavigableMap(t *testing.T) {
|
||||
|
||||
func TestSafEventRemoteHost(t *testing.T) {
|
||||
data := config.DataProvider(safEv)
|
||||
if rply, expected := data.RemoteHost(), new(utils.LocalAddr); !reflect.DeepEqual(expected, rply) {
|
||||
if rply, expected := data.RemoteHost(), utils.LocalAddr(); !reflect.DeepEqual(expected, rply) {
|
||||
t.Errorf("Expecting %+v, received: %+v", expected, rply)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user