Local tests fixups

This commit is contained in:
DanB
2015-01-18 18:09:07 +01:00
parent eed6e4dfa9
commit 97e2bc9a22
25 changed files with 253 additions and 164 deletions

View File

@@ -50,7 +50,7 @@ func startEngine() error {
return errors.New("Cannot find cgr-engine executable")
}
stopEngine()
engine := exec.Command(enginePath, "-config", cfgPath)
engine := exec.Command(enginePath, "-config_dir", cfgPath)
if err := engine.Start(); err != nil {
return fmt.Errorf("Cannot start cgr-engine: %s", err.Error())
}

View File

@@ -78,7 +78,7 @@ func TestTutLclStartEngine(t *testing.T) {
}
exec.Command("pkill", "cgr-engine").Run() // Just to make sure another one is not running, bit brutal maybe we can fine tune it
time.Sleep(time.Duration(*waitRater) * time.Millisecond)
engine := exec.Command(enginePath, "-config", tutCfgPath)
engine := exec.Command(enginePath, "-config_dir", tutCfgPath)
if err := engine.Start(); err != nil {
t.Fatal(err)
}