Updated dispatcher matching

This commit is contained in:
Trial97
2021-06-09 19:34:43 +03:00
committed by Dan Christian Bogos
parent 0c80b7add1
commit 871e9f3ff6
14 changed files with 165 additions and 110 deletions

View File

@@ -281,7 +281,7 @@ func TestRegister(t *testing.T) {
if _, err := register(req); err == nil {
t.Errorf("Expected error,received: nil")
}
args2 = utils.NewServerRequest(utils.DispatcherSv1GetProfileForEvent, id, id)
args2 = utils.NewServerRequest(utils.DispatcherSv1GetProfilesForEvent, id, id)
args2JSON, err = json.Marshal(args2)
if err != nil {
t.Fatal(err)
@@ -290,7 +290,7 @@ func TestRegister(t *testing.T) {
if _, err := register(req); err == nil {
t.Errorf("Expected error,received: nil")
}
args2 = utils.NewServerRequest(utils.DispatcherSv1GetProfileForEvent, id, id)
args2 = utils.NewServerRequest(utils.DispatcherSv1GetProfilesForEvent, id, id)
args2JSON, err = json.Marshal(args2)
if err != nil {
t.Fatal(err)