mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 21:29:52 +05:00
Fixed tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
244ea3d366
commit
7f3a9879de
@@ -72,7 +72,7 @@ func TestShutDownCoverage(t *testing.T) {
|
||||
}
|
||||
|
||||
type dataDBMockErrorNotFound struct {
|
||||
*engine.DataDBMock
|
||||
engine.DataDBMock
|
||||
}
|
||||
|
||||
func (dB *dataDBMockErrorNotFound) GetAccountDrv(*context.Context, string, string) (*utils.Account, error) {
|
||||
|
||||
@@ -546,7 +546,7 @@ func TestRestoreAccount(t *testing.T) { //coverage purpose
|
||||
}
|
||||
|
||||
type dataDBMockError struct {
|
||||
*engine.DataDBMock
|
||||
engine.DataDBMock
|
||||
}
|
||||
|
||||
func TestRestoreAccount2(t *testing.T) { //coverage purpose
|
||||
|
||||
@@ -496,7 +496,7 @@ func TestActionShutDown(t *testing.T) {
|
||||
}
|
||||
|
||||
type dataDBMockError struct {
|
||||
*engine.DataDBMock
|
||||
engine.DataDBMock
|
||||
}
|
||||
|
||||
func (dbM *dataDBMockError) GetActionProfileDrv(*context.Context, string, string) (*engine.ActionProfile, error) {
|
||||
|
||||
@@ -844,7 +844,7 @@ func TestDispatcherServiceDispatcherProfileForEventNotNotFound(t *testing.T) {
|
||||
var cnt int
|
||||
|
||||
dm := engine.NewDataManager(&engine.DataDBMock{
|
||||
GetIndexesDrvF: func(idxItmType, tntCtx, idxKey string) (indexes map[string]utils.StringSet, err error) {
|
||||
GetIndexesDrvF: func(ctx *context.Context, idxItmType, tntCtx, idxKey string) (indexes map[string]utils.StringSet, err error) {
|
||||
if cnt == 0 {
|
||||
cnt++
|
||||
return map[string]utils.StringSet{
|
||||
|
||||
Reference in New Issue
Block a user