mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
Clean code
This commit is contained in:
committed by
Dan Christian Bogos
parent
a48dc072d9
commit
858e337c39
@@ -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),
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user