mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 02:26:26 +05:00
Remove killEngineTest so we can have proper help messages
This commit is contained in:
@@ -52,7 +52,6 @@ var sTestsCDRsIT = []func(t *testing.T){
|
||||
testV2CDRsRateWithoutTP,
|
||||
testV2CDRsLoadTariffPlanFromFolder,
|
||||
testV2CDRsRateWithTP,
|
||||
engine.KillEngineTest,
|
||||
}
|
||||
|
||||
// Tests starting here
|
||||
|
||||
@@ -53,7 +53,6 @@ var sTestsTutIT = []func(t *testing.T){
|
||||
testTPitRpcConn,
|
||||
testTPitTimings,
|
||||
testTPitDestinations,
|
||||
engine.KillEngineTest,
|
||||
}
|
||||
|
||||
// Tests starting here
|
||||
|
||||
@@ -25,7 +25,6 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/cgrates/cgrates/config"
|
||||
@@ -95,13 +94,6 @@ func KillEngine(waitEngine int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// KillEngineTest is included in tests to shutdown the CGRateS processes
|
||||
func KillEngineTest(t *testing.T) {
|
||||
if err := KillEngine(100); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
func StopStartEngine(cfgPath string, waitEngine int) (*exec.Cmd, error) {
|
||||
KillEngine(waitEngine)
|
||||
return StartEngine(cfgPath, waitEngine)
|
||||
|
||||
Reference in New Issue
Block a user