mongo needs more study

This commit is contained in:
Radu Ioan Fericean
2012-03-02 21:29:58 +02:00
parent 58896a48f7
commit 9837c6c1fe
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -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)
}
}