From ec69679d63ea2fd533c29f87b76da986e4967bc3 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Thu, 14 Oct 2021 18:26:50 +0300 Subject: [PATCH] Fix failing test --- config/accountscfg_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/accountscfg_test.go b/config/accountscfg_test.go index fd70c748d..dfc18c11d 100644 --- a/config/accountscfg_test.go +++ b/config/accountscfg_test.go @@ -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 to decimal" if err := actsCfg.loadFromJSONCfg(accountsJson); err == nil || err.Error() != expected { t.Errorf("Expected %+v, received %+v", expected, err) }