From ac3c910752a6de29c26abbaca5a2b15ba4426832 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Fri, 2 Mar 2012 21:03:24 +0200 Subject: [PATCH] more organizational stuff --- timespans/{kyoto_storage.go => storage_kyoto.go} | 0 timespans/{mongo_storage.go => storage_mongo.go} | 0 timespans/{redis_storage.go => storage_redis.go} | 0 timespans/tariff_plans_test.go | 2 +- 4 files changed, 1 insertion(+), 1 deletion(-) rename timespans/{kyoto_storage.go => storage_kyoto.go} (100%) rename timespans/{mongo_storage.go => storage_mongo.go} (100%) rename timespans/{redis_storage.go => storage_redis.go} (100%) diff --git a/timespans/kyoto_storage.go b/timespans/storage_kyoto.go similarity index 100% rename from timespans/kyoto_storage.go rename to timespans/storage_kyoto.go diff --git a/timespans/mongo_storage.go b/timespans/storage_mongo.go similarity index 100% rename from timespans/mongo_storage.go rename to timespans/storage_mongo.go diff --git a/timespans/redis_storage.go b/timespans/storage_redis.go similarity index 100% rename from timespans/redis_storage.go rename to timespans/storage_redis.go diff --git a/timespans/tariff_plans_test.go b/timespans/tariff_plans_test.go index ff1e9cb42..7f93db2c2 100644 --- a/timespans/tariff_plans_test.go +++ b/timespans/tariff_plans_test.go @@ -82,7 +82,7 @@ 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)