mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 10:36:24 +05:00
Fix failing test
This commit is contained in:
committed by
Dan Christian Bogos
parent
39a239cefc
commit
ec69679d63
@@ -127,7 +127,7 @@ func TestAccountsCfLoadConfigError(t *testing.T) {
|
||||
Max_usage: utils.StringPointer("invalid_Decimal"),
|
||||
}
|
||||
actsCfg := new(AccountSCfg)
|
||||
expected := "strconv.ParseInt: parsing \"invalid_Decimal\": invalid syntax"
|
||||
expected := "can't convert <invalid_Decimal> to decimal"
|
||||
if err := actsCfg.loadFromJSONCfg(accountsJson); err == nil || err.Error() != expected {
|
||||
t.Errorf("Expected %+v, received %+v", expected, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user