mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Centralize test flags in utils for shared use across tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
77b58257d3
commit
16eb745f00
@@ -119,7 +119,7 @@ func testSqlEeCreateTable(t *testing.T) {
|
||||
|
||||
func testSqlEeLoadConfig(t *testing.T) {
|
||||
var err error
|
||||
sqlEeCfgPath = path.Join(*dataDir, "conf", "samples", sqlEeConfigDir)
|
||||
sqlEeCfgPath = path.Join(*utils.DataDir, "conf", "samples", sqlEeConfigDir)
|
||||
if sqlEeCfg, err = config.NewCGRConfigFromPath(sqlEeCfgPath); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
@@ -132,7 +132,7 @@ func testSqlEeResetDataDB(t *testing.T) {
|
||||
}
|
||||
|
||||
func testSqlEeStartEngine(t *testing.T) {
|
||||
if _, err := engine.StopStartEngine(sqlEeCfgPath, *waitRater); err != nil {
|
||||
if _, err := engine.StopStartEngine(sqlEeCfgPath, *utils.WaitRater); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user