From 42b69f28628fa442b652bdebd24c37cf76d380e7 Mon Sep 17 00:00:00 2001 From: DanB Date: Tue, 1 Aug 2017 18:14:42 +0200 Subject: [PATCH] Remove killEngineTest so we can have proper help messages --- apier/v2/cdrs_it_test.go | 1 - apier/v2/tp_it_test.go | 1 - engine/libtest.go | 8 -------- 3 files changed, 10 deletions(-) diff --git a/apier/v2/cdrs_it_test.go b/apier/v2/cdrs_it_test.go index c8ffb7e6e..4570cab04 100644 --- a/apier/v2/cdrs_it_test.go +++ b/apier/v2/cdrs_it_test.go @@ -52,7 +52,6 @@ var sTestsCDRsIT = []func(t *testing.T){ testV2CDRsRateWithoutTP, testV2CDRsLoadTariffPlanFromFolder, testV2CDRsRateWithTP, - engine.KillEngineTest, } // Tests starting here diff --git a/apier/v2/tp_it_test.go b/apier/v2/tp_it_test.go index 8fc83a6fe..c03e29aba 100644 --- a/apier/v2/tp_it_test.go +++ b/apier/v2/tp_it_test.go @@ -53,7 +53,6 @@ var sTestsTutIT = []func(t *testing.T){ testTPitRpcConn, testTPitTimings, testTPitDestinations, - engine.KillEngineTest, } // Tests starting here diff --git a/engine/libtest.go b/engine/libtest.go index a06b36525..13b7c96ba 100644 --- a/engine/libtest.go +++ b/engine/libtest.go @@ -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)