Rename unit tests containing <fail> string (1.0)

This commit is contained in:
ionutboangiu
2021-05-05 08:41:20 +03:00
committed by Dan Christian Bogos
parent e43bf73d5f
commit b7a03cabd5
5 changed files with 7 additions and 7 deletions

View File

@@ -1050,7 +1050,7 @@ func TestV1DebitConcretes(t *testing.T) {
}
func TestMultipleAccountsFail(t *testing.T) {
func TestMultipleAccountsErr(t *testing.T) {
engine.Cache.Clear(nil)
cfg := config.NewDefaultCGRConfig()
data := engine.NewInternalDB(nil, nil, true)

View File

@@ -154,7 +154,7 @@ func TestSuretaxNewSureTaxRequestInvalidUnits(t *testing.T) {
}
}
func TestSuretaxSureTaxProcessCdrPostFail(t *testing.T) {
func TestSuretaxSureTaxProcessCdrPostErr(t *testing.T) {
CGRID := utils.Sha1("testOriginID", time.Date(2021, 1, 1, 8, 42, 20, 0, time.UTC).String())
cdr := &CDR{
CGRID: CGRID,

View File

@@ -69,7 +69,7 @@ func TestCallCacheNoCaching(t *testing.T) {
}
}
func TestCallCacheReloadCacheFirstCallFail(t *testing.T) {
func TestCallCacheReloadCacheFirstCallErr(t *testing.T) {
tmp1, tmp2 := connMgr, Cache
defer func() {
connMgr = tmp1
@@ -137,7 +137,7 @@ func TestCallCacheReloadCacheFirstCallFail(t *testing.T) {
}
}
func TestCallCacheReloadCacheSecondCallFailed(t *testing.T) {
func TestCallCacheReloadCacheSecondCallErr(t *testing.T) {
tmp1, tmp2 := connMgr, Cache
defer func() {
connMgr = tmp1

View File

@@ -164,7 +164,7 @@ func TestDecimalNewDecimalFromString(t *testing.T) {
}
}
func TestDecimalNewDecimalFromStringFail(t *testing.T) {
func TestDecimalNewDecimalFromStringErr(t *testing.T) {
str := "testString"
_, err := NewDecimalFromString(str)
expected := "can't convert <" + str + "> to decimal"

View File

@@ -200,7 +200,7 @@ func TestAsExtAccountCharge(t *testing.T) {
}
}
func TestECAsExtEventChargesFailAbstracts(t *testing.T) {
func TestECAsExtEventChargesErrConvertAbstracts(t *testing.T) {
v, _ := new(decimal.Big).SetString("900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993")
ec := &EventCharges{
@@ -216,7 +216,7 @@ func TestECAsExtEventChargesFailAbstracts(t *testing.T) {
}
}
func TestECAsExtEventChargesFailConcretes(t *testing.T) {
func TestECAsExtEventChargesErrConvertConcretes(t *testing.T) {
v, _ := new(decimal.Big).SetString("900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993900719925474099390071992547409939007199254740993")
ec := &EventCharges{