fix for default balance test

This commit is contained in:
Radu Ioan Fericean
2015-10-22 16:05:32 +03:00
parent 332bb5e26c
commit 9782769d9b

View File

@@ -235,6 +235,10 @@ func TestBalanceMatchActionTriggerSharedGroup(t *testing.T) {
func TestBalanceIsDefault(t *testing.T) {
b := &Balance{Weight: 0}
if b.IsDefault() {
t.Errorf("Balance should not be default: %+v", b)
}
b = &Balance{Id: utils.META_DEFAULT}
if !b.IsDefault() {
t.Errorf("Balance should be default: %+v", b)
}