Add more time in on_stor_it_test.go and fix tutorial_it_test.go after merge

This commit is contained in:
TeoV
2018-01-23 10:08:03 +02:00
committed by Dan Christian Bogos
parent 98d1879ab4
commit e321064280
2 changed files with 3 additions and 3 deletions

View File

@@ -113,7 +113,7 @@ func TestOnStorITRedis(t *testing.T) {
}
func TestOnStorITMongoConnect(t *testing.T) {
sleepDelay = 10 * time.Microsecond
sleepDelay = 500 * time.Millisecond
cdrsMongoCfgPath := path.Join(*dataDir, "conf", "samples", "cdrsv2mongo")
mgoITCfg, err := config.NewCGRConfigFromFolder(cdrsMongoCfgPath)
if err != nil {

View File

@@ -589,8 +589,8 @@ func TestTutITProcessExternalCdrUP(t *testing.T) {
ToR: utils.VOICE,
OriginID: "testextcdr2", OriginHost: "192.168.1.1", Source: utils.UNIT_TEST, RequestType: utils.META_RATED,
Tenant: "cgrates.org", Category: "call", Account: "1004", Subject: "1004", Destination: "1001",
SetupTime: time.Date(2014, 8, 4, 13, 0, 0, 0, time.UTC).Format(time.RFC3339),
AnswerTime: time.Date(2014, 8, 4, 13, 0, 7, 0, time.UTC).Format(time.RFC3339), Usage: "2s",
SetupTime: time.Date(2014, 8, 4, 13, 0, 0, 0, time.UTC).Local().Format(time.RFC3339),
AnswerTime: time.Date(2014, 8, 4, 13, 0, 7, 0, time.UTC).Local().Format(time.RFC3339), Usage: "2s",
ExtraFields: map[string]string{"Cli": "+4986517174964", "fieldextr2": "valextr2", "SysUserName": "danb4"},
RunID: utils.DEFAULT_RUNID, Cost: 1}
var cdrs []*engine.ExternalCDR