From 3dc6a4bf0df8b58d57b039ab2e86c1ce0203b6ea Mon Sep 17 00:00:00 2001 From: Tripon Alexandru-Ionut Date: Mon, 8 Apr 2019 19:40:27 +0300 Subject: [PATCH] Updated dispatcher tests --- cmd/cgr-engine/rater.go | 5 +++-- dispatchers/cdrs_it_test.go | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/cgr-engine/rater.go b/cmd/cgr-engine/rater.go index 5e83624c4..1e98a6ede 100755 --- a/cmd/cgr-engine/rater.go +++ b/cmd/cgr-engine/rater.go @@ -191,8 +191,9 @@ func startRater(internalRaterChan, internalApierv1, internalApierv2 chan rpcclie if !cfg.DispatcherSCfg().Enabled { server.RpcRegister(responder) } - server.RpcRegister(apierRpcV1) // ToDo: Add apierv1 to dispatcher - server.RpcRegister(apierRpcV2) // ToDo: Add apierv2 to dispatcher + // ToDo: do not register when dispatcher is active + server.RpcRegister(apierRpcV1) + server.RpcRegister(apierRpcV2) utils.RegisterRpcParams("", &v1.CDRsV1{}) utils.RegisterRpcParams("", &v2.CDRsV2{}) diff --git a/dispatchers/cdrs_it_test.go b/dispatchers/cdrs_it_test.go index 9e1692c21..e382fc930 100644 --- a/dispatchers/cdrs_it_test.go +++ b/dispatchers/cdrs_it_test.go @@ -32,11 +32,11 @@ var sTestsDspCDRs = []func(t *testing.T){ //Test start here func TestDspCDRsITMySQL(t *testing.T) { - testDsp(t, sTestsDspCDRs, "TestDspCDRs", "all", "all2", "attributes", "dispatchers", "tutorial", "oldtutorial", "dispatchers") + testDsp(t, sTestsDspCDRs, "TestDspCDRs", "all", "all2", "dispatchers", "tutorial", "oldtutorial", "dispatchers") } func TestDspCDRsITMongo(t *testing.T) { - testDsp(t, sTestsDspCDRs, "TestDspCDRs", "all", "all2", "attributes_mongo", "dispatchers_mongo", "tutorial", "oldtutorial", "dispatchers") + testDsp(t, sTestsDspCDRs, "TestDspCDRs", "all", "all2", "dispatchers_mongo", "tutorial", "oldtutorial", "dispatchers") } func testDspCDRsPing(t *testing.T) {