diff --git a/pkg/platform/yaml/mockdb/db.go b/pkg/platform/yaml/mockdb/db.go index 80bb626ed..9e150bf6f 100644 --- a/pkg/platform/yaml/mockdb/db.go +++ b/pkg/platform/yaml/mockdb/db.go @@ -36,10 +36,6 @@ func New(Logger *zap.Logger, mockPath string, mockName string) *MockYaml { } } -func (ys *MockYaml) SetMockFileName(mockName string) { - ys.MockName = mockName -} - // UpdateMocks deletes the mocks from the mock file with given names // // mockNames is a map which contains the name of the mocks as key and a isConfig boolean as value diff --git a/pkg/service/replay/replay.go b/pkg/service/replay/replay.go index 10eacf4ff..5e7feca45 100644 --- a/pkg/service/replay/replay.go +++ b/pkg/service/replay/replay.go @@ -242,8 +242,6 @@ func (r *Replayer) RunTestSet(ctx context.Context, testSetID string, testRunID s close(exitLoopChan) }() - r.mockDB.SetMockFileName(runTestSetResult.MockName()) - var appErrChan = make(chan models.AppError, 1) var appErr models.AppError var success int diff --git a/pkg/service/replay/service.go b/pkg/service/replay/service.go index 3d16bd1d8..83c4b95e3 100644 --- a/pkg/service/replay/service.go +++ b/pkg/service/replay/service.go @@ -42,7 +42,6 @@ type MockDB interface { GetFilteredMocks(ctx context.Context, testSetID string, afterTime time.Time, beforeTime time.Time) ([]*models.Mock, error) GetUnFilteredMocks(ctx context.Context, testSetID string, afterTime time.Time, beforeTime time.Time) ([]*models.Mock, error) UpdateMocks(ctx context.Context, testSetID string, mockNames map[string]bool) error - SetMockFileName(mockName string) } type ReportDB interface {