unit tests passing

This commit is contained in:
Radu Ioan Fericean
2016-02-16 22:45:23 +02:00
parent 1acbaa968f
commit fb8aacb234
7 changed files with 232 additions and 281 deletions

View File

@@ -723,6 +723,9 @@ func (acc *Account) InitCounters() {
}
}
}
if len(acc.UnitCounters) == 0 {
acc.UnitCounters = nil // leave it nil if empty
}
}
func (acc *Account) CleanExpiredStuff() {

View File

@@ -57,7 +57,7 @@ const (
DENY_NEGATIVE = "*deny_negative"
RESET_ACCOUNT = "*reset_account"
REMOVE_ACCOUNT = "*remove_account"
SET_BALANCE = "*set_balance" // not ready for production until switching to pointers
SET_BALANCE = "*set_balance"
REMOVE_BALANCE = "*remove_balance"
TOPUP_RESET = "*topup_reset"
TOPUP = "*topup"