mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Small fix
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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 <mysql>")
|
||||
var waitRater = flag.Int("wait_rater", 500, "Number of miliseconds to wait for rater to start and cache")
|
||||
|
||||
@@ -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")
|
||||
)
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
@@ -20,12 +20,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 <mysql>")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user