From a06618f0bc74512d7a6b8322396d8720e4af601d Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Tue, 15 Dec 2015 22:58:47 +0200 Subject: [PATCH] mongo test fix --- engine/storage_mongo_local_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/storage_mongo_local_test.go b/engine/storage_mongo_local_test.go index 14e5183a4..917559f67 100644 --- a/engine/storage_mongo_local_test.go +++ b/engine/storage_mongo_local_test.go @@ -297,14 +297,14 @@ func TestMongoSetGetTPActionTriggers(t *testing.T) { } atrgs := &utils.TPActionTriggers{ TPid: utils.TEST_SQL, - ActionTriggersId: utils.TEST_SQL, + ActionTriggersId: "MY_FIRST_ATGR", ActionTriggers: []*utils.TPActionTrigger{atrg}, } matrg := APItoModelActionTrigger(atrgs) if err := mongoDb.SetTpActionTriggers(matrg); err != nil { t.Error("Unexpected error: ", err.Error()) } - if rcvMpAtrgs, err := mongoDb.GetTpActionTriggers(utils.TEST_SQL, utils.TEST_SQL); err != nil { + if rcvMpAtrgs, err := mongoDb.GetTpActionTriggers(utils.TEST_SQL, "MY_FIRST_ATGR"); err != nil { t.Error("Unexpected error: ", err.Error()) } else if !modelEqual(matrg[0], rcvMpAtrgs[0]) { t.Errorf("Expecting: %v, received: %v", matrg, rcvMpAtrgs)