mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
mongo needs more study
This commit is contained in:
BIN
data/test.kch
BIN
data/test.kch
Binary file not shown.
@@ -82,10 +82,10 @@ func TestTariffPlanMongoStore(t *testing.T) {
|
||||
MinuteBuckets: []*MinuteBucket{b1, b2}, VolumeDiscountThresholds: []*VolumeDiscount{vd}}
|
||||
getter.SetTariffPlan(seara)
|
||||
result, _ := getter.GetTariffPlan(seara.Id)
|
||||
if reflect.DeepEqual(seara, result) {
|
||||
if !reflect.DeepEqual(seara, result) {
|
||||
t.Log(seara)
|
||||
t.Log(result)
|
||||
t.Errorf("Expected %q was %q", seara, result)
|
||||
t.Errorf("Expected %v was %v", seara.VolumeDiscountThresholds, result.VolumeDiscountThresholds)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user