diff --git a/cache2go/cache_test.go b/cache2go/cache_test.go index e3755644f..77a23f1f9 100644 --- a/cache2go/cache_test.go +++ b/cache2go/cache_test.go @@ -60,6 +60,20 @@ func TestTransactionRollback(t *testing.T) { } } +func TestTransactionRemBefore(t *testing.T) { + BeginTransaction() + RemPrefixKey("t41_") + Cache("t41_mm", "test") + Cache("t41_nn", "test") + CommitTransaction() + if t1, err := GetCached("t41_mm"); err != nil || t1 != "test" { + t.Error("Error commiting transaction") + } + if t1, err := GetCached("t41_nn"); err != nil || t1 != "test" { + t.Error("Error in transaction cache") + } +} + func TestRemPrefixKey(t *testing.T) { Cache("x_t1", "test") Cache("y_t1", "test") diff --git a/engine/calldesc.go b/engine/calldesc.go index d27e8e852..9a2130b8b 100644 --- a/engine/calldesc.go +++ b/engine/calldesc.go @@ -35,7 +35,7 @@ const ( RECURSION_MAX_DEPTH = 3 MIN_PREFIX_MATCH = 1 FALLBACK_SUBJECT = utils.ANY - DEBUG = true + DEBUG = false ) func init() { diff --git a/utils/consts.go b/utils/consts.go index 06fceba1a..45db833d1 100644 --- a/utils/consts.go +++ b/utils/consts.go @@ -158,7 +158,6 @@ const ( CREATE_CDRS_TABLES_SQL = "create_cdrs_tables.sql" CREATE_TARIFFPLAN_TABLES_SQL = "create_tariffplan_tables.sql" TEST_SQL = "TEST_SQL" - TP_ID_SEP = ":" ) var (