Updated sessions integration tests for gob

This commit is contained in:
Trial97
2019-12-03 13:09:47 +02:00
parent 981894d779
commit 0cce0e371b
17 changed files with 740 additions and 97 deletions

View File

@@ -70,6 +70,9 @@ func TestTutorial2Mongo(t *testing.T) {
func testTutLoadConfig(t *testing.T) {
var err error
tutCfgPath = path.Join(*dataDir, "conf", "samples", tutCfgDir)
if *encoding == utils.MetaGOB {
tutCfgPath = path.Join(*dataDir, "conf", "samples", "gob", tutCfgDir)
}
if tutCfg, err = config.NewCGRConfigFromPath(tutCfgPath); err != nil {
t.Error(err)
}