Complete tests

This commit is contained in:
TeoV
2018-12-20 05:39:13 -05:00
committed by Dan Christian Bogos
parent 5674a18c6b
commit b537c160f6
2 changed files with 2 additions and 2 deletions

View File

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

View File

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