mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Replaced DEFAULT_RUNID with META_DEFAULT
This commit is contained in:
@@ -147,7 +147,7 @@ func testCdrITMigrateAndMove(t *testing.T) {
|
||||
Destination: "1002",
|
||||
SetupTime: time.Date(2013, 11, 7, 8, 42, 20, 0, time.UTC),
|
||||
AnswerTime: time.Date(2013, 11, 7, 8, 42, 26, 0, time.UTC),
|
||||
RunID: utils.DEFAULT_RUNID,
|
||||
RunID: utils.META_DEFAULT,
|
||||
Usage: time.Duration(10),
|
||||
ExtraFields: map[string]string{"field_extr1": "val_extr1", "fieldextr2": "valextr2"},
|
||||
Cost: 1.01,
|
||||
|
||||
@@ -175,7 +175,7 @@ func testSessionCostITMigrate(t *testing.T) {
|
||||
CGRID: utils.Sha1("dsafdsaf", time.Date(2013, 11, 7, 8, 42, 20, 0, time.UTC).String()),
|
||||
OriginID: "dsafdsaf",
|
||||
OriginHost: "192.168.1.1",
|
||||
RunID: utils.DEFAULT_RUNID,
|
||||
RunID: utils.META_DEFAULT,
|
||||
Usage: time.Duration(10),
|
||||
CostSource: utils.MetaSessionS,
|
||||
CostDetails: cc,
|
||||
@@ -200,7 +200,7 @@ func testSessionCostITMigrate(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Error("Error when migrating SessionsCosts ", err.Error())
|
||||
}
|
||||
if rcvCosts, err := sCostMigrator.storDBOut.StorDB().GetSMCosts("", utils.DEFAULT_RUNID, "", ""); err != nil {
|
||||
if rcvCosts, err := sCostMigrator.storDBOut.StorDB().GetSMCosts("", utils.META_DEFAULT, "", ""); err != nil {
|
||||
t.Error(err)
|
||||
} else if len(rcvCosts) != 1 {
|
||||
t.Errorf("Unexpected number of SessionsCosts returned: %d", len(rcvCosts))
|
||||
|
||||
Reference in New Issue
Block a user