Fixed tests

This commit is contained in:
andronache
2021-05-20 15:03:26 +03:00
committed by Dan Christian Bogos
parent 244ea3d366
commit 7f3a9879de
4 changed files with 4 additions and 4 deletions

View File

@@ -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) {

View File

@@ -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

View File

@@ -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) {

View File

@@ -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{