Updated dispatcher tests

This commit is contained in:
Tripon Alexandru-Ionut
2019-04-12 13:46:36 +03:00
committed by Dan Christian Bogos
parent cefbdab382
commit 99bcf7b94e

View File

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