Skip to content

Commit

Permalink
Make sure required analyzers db file exists in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ionutboangiu authored and danbogos committed Nov 8, 2023
1 parent 29f58de commit 9b18816
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions general_tests/all_cfg_sect_rld_it_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
package general_tests

import (
"os"
"path"
"reflect"
"testing"
Expand Down Expand Up @@ -139,6 +140,9 @@ func testSectResetStorDb(t *testing.T) {
}

func testSectStartEngine(t *testing.T) {
if err := os.MkdirAll("/var/spool/cgrates/analyzers", 0755); err != nil {
t.Error(err)
}
if _, err := engine.StopStartEngine(testSectCfgPath, *waitRater); err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -1483,6 +1487,9 @@ func testSectConfigSReloadAPIBan(t *testing.T) {
}

func testSectStopCgrEngine(t *testing.T) {
if err := os.RemoveAll("/var/spool/cgrates/analyzers"); err != nil {
t.Error(err)
}
if err := engine.KillEngine(*waitRater); err != nil {
t.Error(err)
}
Expand Down

0 comments on commit 9b18816

Please sign in to comment.