From 916624f8b142dd5d94cb1f46d99528bfd41c8f1c Mon Sep 17 00:00:00 2001 From: Edwardro22 Date: Mon, 28 Nov 2016 12:42:11 +0100 Subject: [PATCH] Small fix --- agents/dmtagent_it_test.go | 1 - apier/v1/apier_it_test.go | 1 - apier/v2/apierv2_it_test.go | 1 - cdrc/csv_it_test.go | 1 - config/multifiles_it_test.go | 5 ++--- engine/cdr_it_test.go | 1 - general_tests/multiplecdrc_it_test.go | 1 - utils/httpclient_it_test.go | 2 -- 8 files changed, 2 insertions(+), 11 deletions(-) diff --git a/agents/dmtagent_it_test.go b/agents/dmtagent_it_test.go index 1d653f0a3..d310f33af 100644 --- a/agents/dmtagent_it_test.go +++ b/agents/dmtagent_it_test.go @@ -40,7 +40,6 @@ import ( "github.com/fiorix/go-diameter/diam/dict" ) -var testIT = flag.Bool("integration", false, "Perform the tests only on local test environment, not by default.") var waitRater = flag.Int("wait_rater", 100, "Number of miliseconds to wait for rater to start and cache") var dataDir = flag.String("data_dir", "/usr/share/cgrates", "CGR data dir path here") var interations = flag.Int("iterations", 1, "Number of iterations to do for dry run simulation") diff --git a/apier/v1/apier_it_test.go b/apier/v1/apier_it_test.go index 47e70ace1..2392ef684 100644 --- a/apier/v1/apier_it_test.go +++ b/apier/v1/apier_it_test.go @@ -60,7 +60,6 @@ var cfgPath string var cfg *config.CGRConfig var rater *rpc.Client -var testIT = flag.Bool("integration", false, "Perform the tests only on local test environment, not by default.") var dataDir = flag.String("data_dir", "/usr/share/cgrates", "CGR data dir path here") var storDbType = flag.String("stordb_type", "mysql", "The type of the storDb database ") var waitRater = flag.Int("wait_rater", 500, "Number of miliseconds to wait for rater to start and cache") diff --git a/apier/v2/apierv2_it_test.go b/apier/v2/apierv2_it_test.go index 637ae3668..6edc70a12 100644 --- a/apier/v2/apierv2_it_test.go +++ b/apier/v2/apierv2_it_test.go @@ -33,7 +33,6 @@ import ( ) var ( - testIT = flag.Bool("integration", false, "Perform the tests only on local test environment, not by default.") dataDir = flag.String("data_dir", "/usr/share/cgrates", "CGR data dir path here") waitRater = flag.Int("wait_rater", 500, "Number of miliseconds to wait for rater to start and cache") ) diff --git a/cdrc/csv_it_test.go b/cdrc/csv_it_test.go index 0ebe5b972..600587857 100644 --- a/cdrc/csv_it_test.go +++ b/cdrc/csv_it_test.go @@ -53,7 +53,6 @@ var cdrcCfgs []*config.CdrcConfig var cdrcCfg *config.CdrcConfig var cdrcRpc *rpc.Client -var testIT = flag.Bool("integration", false, "Perform the tests only on local test environment, not by default.") var dataDir = flag.String("data_dir", "/usr/share/cgrates", "CGR data dir path here") var waitRater = flag.Int("wait_rater", 300, "Number of miliseconds to wait for rater to start and cache") diff --git a/config/multifiles_it_test.go b/config/multifiles_it_test.go index 3bc133939..f10a945a1 100644 --- a/config/multifiles_it_test.go +++ b/config/multifiles_it_test.go @@ -20,12 +20,11 @@ along with this program. If not, see package config import ( - "flag" - "github.com/cgrates/cgrates/utils" "testing" + + "github.com/cgrates/cgrates/utils" ) -var testIT = flag.Bool("integration", false, "Perform the tests only on local test environment, not by default.") var mfCgrCfg *CGRConfig func TestMfInitConfig(t *testing.T) { diff --git a/engine/cdr_it_test.go b/engine/cdr_it_test.go index c4d5f820f..f1989e99b 100644 --- a/engine/cdr_it_test.go +++ b/engine/cdr_it_test.go @@ -29,7 +29,6 @@ import ( ) // Arguments received via test command -var testIT = flag.Bool("integration", false, "Perform the tests only on local test environment, not by default.") var dataDir = flag.String("data_dir", "/usr/share/cgrates", "CGR data dir path here") // Sample HttpJsonPost, more for usage purposes diff --git a/general_tests/multiplecdrc_it_test.go b/general_tests/multiplecdrc_it_test.go index f8b6066e4..0d4d71df0 100644 --- a/general_tests/multiplecdrc_it_test.go +++ b/general_tests/multiplecdrc_it_test.go @@ -42,7 +42,6 @@ var cfgPath string var cfg *config.CGRConfig var rater *rpc.Client -var testIT = flag.Bool("integration", false, "Perform the tests only on local test environment, not by default.") var testCalls = flag.Bool("calls", false, "Run test calls simulation, not by default.") var dataDir = flag.String("data_dir", "/usr/share/cgrates", "CGR data dir path here") var storDbType = flag.String("stordb_type", "mysql", "The type of the storDb database ") diff --git a/utils/httpclient_it_test.go b/utils/httpclient_it_test.go index c28252e55..4ec89924e 100644 --- a/utils/httpclient_it_test.go +++ b/utils/httpclient_it_test.go @@ -21,14 +21,12 @@ package utils import ( "encoding/json" - "flag" "io/ioutil" "os" "reflect" "testing" "time" ) -var testIT = flag.Bool("integration", false, "Perform the tests only on local test environment, not by default.") type TestContent struct { Var1 string