Fix tariffplan data and sleep in tutfscsv_local_test

This commit is contained in:
DanB
2014-03-02 09:43:27 +01:00
parent 64711c6b87
commit 487a1c5da6
2 changed files with 2 additions and 1 deletions

View File

@@ -152,6 +152,7 @@ func TestFsCsvLoadTariffPlans(t *testing.T) {
} else if reply != "OK" {
t.Error("Calling ApierV1.LoadTariffPlanFromFolder got reply: ", reply)
}
time.Sleep(100 * time.Millisecond) // Give time for scheduler to execute topups
var rcvStats *utils.CacheStats
expectedStats := &utils.CacheStats{Destinations: 3, RatingPlans: 1, RatingProfiles: 1, Actions: 2}
var args utils.AttrCacheStats

View File

@@ -1,3 +1,3 @@
#ActionsTag,Action,BalanceType,Direction,Units,ExpiryTime,DestinationTag,RatingSubject,BalanceWeight,SharedGroup,ExtraParameters,Weight
PREPAID_10,*topup_reset,*monetary,*out,10,*unlimited,*any,,10,,,10
BONUS_1,*topup,*monetary,*out,1,*unlimited,*any,,,10,,10
BONUS_1,*topup,*monetary,*out,1,*unlimited,*any,,10,,,10
1 #ActionsTag Action BalanceType Direction Units ExpiryTime DestinationTag RatingSubject BalanceWeight SharedGroup ExtraParameters Weight
2 PREPAID_10 *topup_reset *monetary *out 10 *unlimited *any 10 10
3 BONUS_1 *topup *monetary *out 1 *unlimited *any 10 10 10