Clean code

This commit is contained in:
TeoV
2018-04-27 10:54:43 -04:00
committed by Dan Christian Bogos
parent a48dc072d9
commit 858e337c39
2 changed files with 0 additions and 4 deletions

View File

@@ -214,9 +214,6 @@ func testSMCosts(cfg *config.CGRConfig) error {
} else if len(rcvSMC) == 0 {
return errors.New("testSMCosts #5, no SMCosts received")
}
// else if len(cc.EventCost) != len(rcvSMC[0].EventCost) { // cc.Timespans[0].RateInterval.Rating.Rates[0], rcvCC.Timespans[0].RateInterval.Rating.Rates[0])
// return fmt.Errorf("testSMCosts #6, expecting: %+v, received: %+s", EventCost, utils.ToIJSON(rcvSMC[0].EventCost))
// }
// Test query per prefix
for i := 0; i < 3; i++ {
if err := cdrStorage.SetSMCost(&SMCost{CGRID: "164b0422fdc6a5117031b427439482c6a4f90e5" + strconv.Itoa(i),

View File

@@ -1732,7 +1732,6 @@ func testStorDBitCRUDCDRs(t *testing.T) {
if !(reflect.DeepEqual(snd[0].Partial, rcv[0].Partial) || reflect.DeepEqual(snd[0].Partial, rcv[1].Partial)) {
t.Errorf("Expecting: %+v, received: %+v || %+v", snd[0].Partial, rcv[0].Partial, rcv[1].Partial)
}
// investighate here
if !reflect.DeepEqual(snd[0].CostDetails, rcv[0].CostDetails) {
t.Errorf("Expecting: %+v, received: %+v", snd[0].CostDetails, rcv[0].CostDetails)
}