Skip to content

Commit

Permalink
remove: mock file setter
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamsouravjha committed Apr 23, 2024
1 parent 020048d commit 680f216
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions pkg/platform/yaml/mockdb/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions pkg/service/replay/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion pkg/service/replay/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 680f216

Please sign in to comment.