From 9782769d9b3aa2f598197c3649ca4ff1fa7e3e51 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Thu, 22 Oct 2015 16:05:32 +0300 Subject: [PATCH] fix for default balance test --- engine/balances_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/balances_test.go b/engine/balances_test.go index 7b79209e2..ce409924f 100644 --- a/engine/balances_test.go +++ b/engine/balances_test.go @@ -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) }