no default fallback, fixes #146

This commit is contained in:
Radu Ioan Fericean
2015-08-18 23:05:05 +03:00
parent 287767d8fa
commit 7d20097754
6 changed files with 62 additions and 24 deletions

View File

@@ -117,7 +117,7 @@ func TestFallbackWithBackTrace(t *testing.T) {
}
}
func TestFallbackDefault(t *testing.T) {
func TestFallbackNoDefault(t *testing.T) {
cd := &CallDescriptor{
TimeStart: time.Date(2013, 10, 21, 18, 34, 0, 0, time.UTC),
TimeEnd: time.Date(2013, 10, 21, 18, 35, 0, 0, time.UTC),
@@ -127,7 +127,7 @@ func TestFallbackDefault(t *testing.T) {
Subject: "one",
Destination: "0723"}
cd.LoadRatingPlans()
if len(cd.RatingInfos) != 1 {
if len(cd.RatingInfos) != 0 {
t.Error("Error restoring activation periods: ", len(cd.RatingInfos))
}
}